59 typedef std::map< btCollisionObject *, CENSGraphicsShape * >
CENSShapes;
121 virtual void step(
int value );
147 const btTransform& startTransform,
148 btCollisionShape* shape,
185 btCollisionShape* shape,
210 btTransform local_transform,
211 std::string screenTitle,
262 #endif // CENS_ENGINE_H
Initializing and manipulating physics objects.
btMatrix3x3 eigen2btMat(const Eigen::Matrix3f &v)
Computational Embodied Neuroscience Simulator library.
btSoftBody * localCreateSoftBody(float mass, btCollisionShape *shape, const btVector3 &color=eigen2btVec(CENS_NULL_COLOR), const TexCoords &texCoords=CENS_NULL_TEXCOORDS, CENSPixelMap &pixmap=CENS_NULL_PIXMAP)
A C++ wrapper for OpenGL.
btRigidBody * localImportRigidBody(btRigidBody *body, const btVector3 &color=eigen2btVec(CENS_NULL_COLOR), const TexCoords &texCoords=CENS_NULL_TEXCOORDS, CENSPixelMap &pixmap=CENS_NULL_PIXMAP)
CENSPixelMap CENS_NULL_PIXMAP
std::map< btCollisionObject *, CENSGraphicsShape * > CENSShapes
An interface to the bullet physics library.
std::vector< Vector2f > TexCoords
virtual void syncAttachedCamera(int index)
btSoftBody * localLinkSoftBody(btSoftBody *body, const btVector3 &color=eigen2btVec(CENS_NULL_COLOR), const TexCoords &texCoords=CENS_NULL_TEXCOORDS, CENSPixelMap &pixmap=CENS_NULL_PIXMAP)
Eigen::Matrix3f btMat2eigen(const btMatrix3x3 &v)
btVector3 eigen2btVec(const Eigen::Vector3f &v)
virtual void step(int value)
virtual void init(int argc, char **argv)
Use a byte vector as a matrix.
btTransform m_bcLocal_transform
virtual void initObjects()
btRigidBody * localCreateRigidBody(float mass, const btTransform &startTransform, btCollisionShape *shape, const btVector3 &color=eigen2btVec(CENS_NULL_COLOR), const TexCoords &texCoords=CENS_NULL_TEXCOORDS, CENSPixelMap &pixmap=CENS_NULL_PIXMAP)
Parameters for the body-camera link.
Eigen::Vector3f btVec2eigen(const btVector3 &v)
std::vector< CENSBodyCameraData > m_eAttachedCameras
TexCoords CENS_NULL_TEXCOORDS
virtual int attachCamera(btRigidBody *body, btTransform local_transform, std::string screenTitle, int screenWidth, int screenHeight, int screenXGap, int screenYGap, btVector3 up, float target, float foV=70.0, float near=1.0, float far=10000)