Package fr.phylisiumstudio.logic
Interface IPhysicsEngineFactory<T,C,W,V>
- All Known Implementing Classes:
PhysicsEngineFactory
public interface IPhysicsEngineFactory<T,C,W,V>
Factory for creating physics engine objects
-
Method Summary
Modifier and TypeMethodDescriptioncreateRigidBody
(float mass, W shape, V transform) Create a new rigid bodyCreate a new dynamics world
-
Method Details
-
createWorld
T createWorld()Create a new dynamics world- Returns:
- the new dynamics world
-
createRigidBody
Create a new rigid body- 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
-