Package fr.phylisiumstudio.bullet
Class PhysicsEngineFactory
java.lang.Object
fr.phylisiumstudio.bullet.PhysicsEngineFactory
- All Implemented Interfaces:
IPhysicsEngineFactory<com.bulletphysics.dynamics.DiscreteDynamicsWorld,com.bulletphysics.dynamics.RigidBody, com.bulletphysics.collision.shapes.CollisionShape, com.bulletphysics.linearmath.Transform>
public class PhysicsEngineFactory
extends Object
implements IPhysicsEngineFactory<com.bulletphysics.dynamics.DiscreteDynamicsWorld,com.bulletphysics.dynamics.RigidBody,com.bulletphysics.collision.shapes.CollisionShape,com.bulletphysics.linearmath.Transform>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.bulletphysics.dynamics.RigidBodycreateRigidBody(float mass, com.bulletphysics.collision.shapes.CollisionShape shape, com.bulletphysics.linearmath.Transform transform) Create a new rigid bodycom.bulletphysics.dynamics.DiscreteDynamicsWorldCreate a new dynamics world
-
Constructor Details
-
PhysicsEngineFactory
public PhysicsEngineFactory()
-
-
Method Details
-
createWorld
public com.bulletphysics.dynamics.DiscreteDynamicsWorld createWorld()Description copied from interface:IPhysicsEngineFactoryCreate a new dynamics world- Specified by:
createWorldin interfaceIPhysicsEngineFactory<com.bulletphysics.dynamics.DiscreteDynamicsWorld,com.bulletphysics.dynamics.RigidBody, com.bulletphysics.collision.shapes.CollisionShape, com.bulletphysics.linearmath.Transform> - Returns:
- the new dynamics world
-
createRigidBody
public com.bulletphysics.dynamics.RigidBody createRigidBody(float mass, com.bulletphysics.collision.shapes.CollisionShape shape, com.bulletphysics.linearmath.Transform transform) Description copied from interface:IPhysicsEngineFactoryCreate a new rigid body- Specified by:
createRigidBodyin interfaceIPhysicsEngineFactory<com.bulletphysics.dynamics.DiscreteDynamicsWorld,com.bulletphysics.dynamics.RigidBody, com.bulletphysics.collision.shapes.CollisionShape, com.bulletphysics.linearmath.Transform> - Parameters:
mass- the mass of the rigid bodyshape- the shape of the rigid bodytransform- the transform of the rigid body- Returns:
- the new rigid body
-