|
| btBulletWorldImporter (btDynamicsWorld *world=0) |
|
virtual | ~btBulletWorldImporter () |
|
bool | loadFile (const char *fileName, const char *preSwapFilenameOut=0) |
| if you pass a valid preSwapFilenameOut, it will save a new file with a different endianness this pre-swapped file can be loaded without swapping on a target platform of different endianness More...
|
|
bool | loadFileFromMemory (char *memoryBuffer, int len) |
| the memoryBuffer might be modified (for example if endian swaps are necessary) More...
|
|
bool | loadFileFromMemory (bParse::btBulletFile *file) |
|
virtual bool | convertAllObjects (bParse::btBulletFile *file) |
|
| btWorldImporter (btDynamicsWorld *world) |
|
virtual | ~btWorldImporter () |
|
virtual void | deleteAllData () |
| delete all memory collision shapes, rigid bodies, constraints etc. More...
|
|
void | setVerboseMode (int verboseMode) |
|
int | getVerboseMode () const |
|
void | setImporterFlags (int importerFlags) |
|
int | getImporterFlags () const |
|
int | getNumCollisionShapes () const |
|
btCollisionShape * | getCollisionShapeByIndex (int index) |
|
int | getNumRigidBodies () const |
|
btCollisionObject * | getRigidBodyByIndex (int index) const |
|
int | getNumConstraints () const |
|
btTypedConstraint * | getConstraintByIndex (int index) const |
|
int | getNumBvhs () const |
|
btOptimizedBvh * | getBvhByIndex (int index) const |
|
int | getNumTriangleInfoMaps () const |
|
btTriangleInfoMap * | getTriangleInfoMapByIndex (int index) const |
|
btCollisionShape * | getCollisionShapeByName (const char *name) |
|
btRigidBody * | getRigidBodyByName (const char *name) |
|
btTypedConstraint * | getConstraintByName (const char *name) |
|
const char * | getNameForPointer (const void *ptr) const |
|
virtual void | setDynamicsWorldInfo (const btVector3 &gravity, const btContactSolverInfo &solverInfo) |
| those virtuals are called by load and can be overridden by the user More...
|
|
virtual btRigidBody * | createRigidBody (bool isDynamic, btScalar mass, const btTransform &startTransform, btCollisionShape *shape, const char *bodyName) |
|
virtual btCollisionObject * | createCollisionObject (const btTransform &startTransform, btCollisionShape *shape, const char *bodyName) |
|
virtual btCollisionShape * | createPlaneShape (const btVector3 &planeNormal, btScalar planeConstant) |
| shapes More...
|
|
virtual btCollisionShape * | createBoxShape (const btVector3 &halfExtents) |
|
virtual btCollisionShape * | createSphereShape (btScalar radius) |
|
virtual btCollisionShape * | createCapsuleShapeX (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createCapsuleShapeY (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createCapsuleShapeZ (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createCylinderShapeX (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createCylinderShapeY (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createCylinderShapeZ (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createConeShapeX (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createConeShapeY (btScalar radius, btScalar height) |
|
virtual btCollisionShape * | createConeShapeZ (btScalar radius, btScalar height) |
|
virtual class btTriangleIndexVertexArray * | createTriangleMeshContainer () |
|
virtual btBvhTriangleMeshShape * | createBvhTriangleMeshShape (btStridingMeshInterface *trimesh, btOptimizedBvh *bvh) |
|
virtual btCollisionShape * | createConvexTriangleMeshShape (btStridingMeshInterface *trimesh) |
|
virtual btGImpactMeshShape * | createGimpactShape (btStridingMeshInterface *trimesh) |
|
virtual btStridingMeshInterfaceData * | createStridingMeshInterfaceData (btStridingMeshInterfaceData *interfaceData) |
|
virtual class btConvexHullShape * | createConvexHullShape () |
|
virtual class btCompoundShape * | createCompoundShape () |
|
virtual class btScaledBvhTriangleMeshShape * | createScaledTrangleMeshShape (btBvhTriangleMeshShape *meshShape, const btVector3 &localScalingbtBvhTriangleMeshShape) |
|
virtual class btMultiSphereShape * | createMultiSphereShape (const btVector3 *positions, const btScalar *radi, int numSpheres) |
|
virtual btTriangleIndexVertexArray * | createMeshInterface (btStridingMeshInterfaceData &meshData) |
|
virtual class btHeightfieldTerrainShape * | createHeightfieldShape (int heightStickWidth, int heightStickLength, const void *heightfieldData, btScalar heightScale, btScalar minHeight, btScalar maxHeight, int upAxis, int heightDataType, bool flipQuadEdges) |
|
virtual btOptimizedBvh * | createOptimizedBvh () |
| acceleration and connectivity structures More...
|
|
virtual btTriangleInfoMap * | createTriangleInfoMap () |
|
virtual btPoint2PointConstraint * | createPoint2PointConstraint (btRigidBody &rbA, btRigidBody &rbB, const btVector3 &pivotInA, const btVector3 &pivotInB) |
| constraints More...
|
|
virtual btPoint2PointConstraint * | createPoint2PointConstraint (btRigidBody &rbA, const btVector3 &pivotInA) |
|
virtual btHingeConstraint * | createHingeConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &rbAFrame, const btTransform &rbBFrame, bool useReferenceFrameA=false) |
|
virtual btHingeConstraint * | createHingeConstraint (btRigidBody &rbA, const btTransform &rbAFrame, bool useReferenceFrameA=false) |
|
virtual btConeTwistConstraint * | createConeTwistConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &rbAFrame, const btTransform &rbBFrame) |
|
virtual btConeTwistConstraint * | createConeTwistConstraint (btRigidBody &rbA, const btTransform &rbAFrame) |
|
virtual btGeneric6DofConstraint * | createGeneric6DofConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &frameInA, const btTransform &frameInB, bool useLinearReferenceFrameA) |
|
virtual btGeneric6DofConstraint * | createGeneric6DofConstraint (btRigidBody &rbB, const btTransform &frameInB, bool useLinearReferenceFrameB) |
|
virtual btGeneric6DofSpringConstraint * | createGeneric6DofSpringConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &frameInA, const btTransform &frameInB, bool useLinearReferenceFrameA) |
|
virtual btGeneric6DofSpring2Constraint * | createGeneric6DofSpring2Constraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &frameInA, const btTransform &frameInB, int rotateOrder) |
|
virtual btSliderConstraint * | createSliderConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &frameInA, const btTransform &frameInB, bool useLinearReferenceFrameA) |
|
virtual btSliderConstraint * | createSliderConstraint (btRigidBody &rbB, const btTransform &frameInB, bool useLinearReferenceFrameA) |
|
virtual btGearConstraint * | createGearConstraint (btRigidBody &rbA, btRigidBody &rbB, const btVector3 &axisInA, const btVector3 &axisInB, btScalar ratio) |
|
The btBulletWorldImporter is a starting point to import .bullet files.
note that not all data is converted yet. You are expected to override or modify this class. See Bullet/Demos/SerializeDemo for a derived class that extract btSoftBody objects too.
Definition at line 32 of file btBulletWorldImporter.h.