33 #include <LinearMath/btTransform.h> 39 #define ICL_UNIT_TO_BULLET_UNIT (ICL_UNIT_TO_METER / METER_TO_BULLET_UNIT) 50 const btMatrix3x3 &R = T.getBasis();
51 const btVector3 &t = T.getOrigin();
62 T.setBasis(btMatrix3x3(M[0],M[1],M[2],
65 T.setOrigin(btVector3(M[3],M[7],M[11]));
73 T.setBasis(btMatrix3x3(M[0],M[1],M[2],
float icl2bullet(float x)
Converts from icl to bullet units.
Definition: PhysicsDefs.h:42
undocument this line if you encounter any issues!
Definition: Any.h:37
btTransform icl2bullet_scaled_mat(const geom::Mat &M)
Creates a bullet transform from an icl Mat and scales accordingly.
Definition: PhysicsDefs.h:70
Mat4D32f Mat
Short typedef for 4D float matrices.
Definition: GeomDefs.h:90
geom::Vec bullet2icl_unscaled(const btVector3 &v)
Creates an icl vector from a bullet vector WITHOUT scaling.
Definition: PhysicsDefs.h:86
#define ICL_UNIT_TO_BULLET_UNIT
Definition: PhysicsDefs.h:39
btTransform icl2bullet_unscaled_mat(const geom::Mat &M)
Definition: PhysicsDefs.h:59
#define ICLPhysics_API
Definition: CompatMacros.h:181
Vec4D32f Vec
Short typedef for 4D float vectors.
Definition: GeomDefs.h:87
ICLPhysics_API float METER_TO_BULLET_UNIT
float bullet2icl(float x)
Converts from bullet to icl units.
Definition: PhysicsDefs.h:45
geom::Vec bullet2icl_scaled(const btVector3 &v)
Creates an icl vector from a bullet vector WITH scaling.
Definition: PhysicsDefs.h:92
btVector3 icl2bullet_unscaled(const geom::Vec &v)
Creates a bullet vector from an icl vector WITHOUT scaling.
Definition: PhysicsDefs.h:83
ICLPhysics_API float ICL_UNIT_TO_METER
btVector3 icl2bullet_scaled(const geom::Vec &v)
Creates a bullet vector from an icl vector WITH scaling.
Definition: PhysicsDefs.h:89