Files
bullet3/opencl/gpu_sat/host/btRigidBodyCL.h
erwin coumans 9612c2cd3d add gpu_sat
2013-03-12 21:11:46 -07:00

36 lines
595 B
C

#ifndef BT_RIGID_BODY_CL
#define BT_RIGID_BODY_CL
#include "parallel_primitives/host/btScalar.h"
#include "parallel_primitives/host/btMatrix3x3.h"
ATTRIBUTE_ALIGNED16(struct) btRigidBodyCL
{
BT_DECLARE_ALIGNED_ALLOCATOR();
btVector3 m_pos;
btQuaternion m_quat;
btVector3 m_linVel;
btVector3 m_angVel;
int m_collidableIdx;
float m_invMass;
float m_restituitionCoeff;
float m_frictionCoeff;
float getInvMass() const
{
return m_invMass;
}
};
struct Inertia
{
btMatrix3x3 m_invInertiaWorld;
btMatrix3x3 m_initInvInertia;
};
#endif//BT_RIGID_BODY_CL