Skip to content

Commit

Permalink
add_static_collider event added, deactivations update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilgramblicka committed Sep 12, 2017
1 parent 67606a8 commit 0f7ee0c
Show file tree
Hide file tree
Showing 7 changed files with 749 additions and 716 deletions.
6 changes: 5 additions & 1 deletion src/otbullet/discrete_dynamics_world.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ class discrete_dynamics_world : public btDiscreteDynamicsWorld
return _stats;
}

const void * get_context() { return _context; }

void get_obb(const btCollisionShape * cs, const btTransform& t, double3& cen, float3x3& basis);


protected:

virtual void internalSingleStepSimulation(btScalar timeStep) override;
Expand All @@ -253,7 +258,6 @@ class discrete_dynamics_world : public btDiscreteDynamicsWorld
fn_process_tree_collision _tree_collision;

void process_tree_collisions(btScalar time_step);
void get_obb(const btCollisionShape * cs, const btTransform& t, double3& cen, float3x3& basis);
void oob_to_aabb(const btVector3& src_cen,
const btMatrix3x3& src_basis,
const btVector3& dst_cen,
Expand Down
2 changes: 2 additions & 0 deletions src/otbullet/otbullet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ class physics : public policy_intrusive_base
float3* norm,
double3* hitpoint);

ifc_event void add_static_collider(const void * context, btCollisionObject * obj, const double3& cen, const float3x3& basis);

ifc_event void log(const coid::token& text);

private:
Expand Down
560 changes: 284 additions & 276 deletions src/otbullet/otbullet.intergen.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit 0f7ee0c

Please sign in to comment.