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.RigidBody
createRigidBody
(float mass, com.bulletphysics.collision.shapes.CollisionShape shape, com.bulletphysics.linearmath.Transform transform) Create a new rigid bodycom.bulletphysics.dynamics.DiscreteDynamicsWorld
Create a new dynamics world
-
Constructor Details
-
PhysicsEngineFactory
public PhysicsEngineFactory()
-
-
Method Details
-
createWorld
public com.bulletphysics.dynamics.DiscreteDynamicsWorld createWorld()Description copied from interface:IPhysicsEngineFactory
Create a new dynamics world- Specified by:
createWorld
in 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:IPhysicsEngineFactory
Create a new rigid body- Specified by:
createRigidBody
in 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
-