Package repast.simphony.space.physics
Interface PhysicsSpace<T>
-
- Type Parameters:
T
-
- All Superinterfaces:
Projection<T>
- All Known Implementing Classes:
ContextPhysics
,DefaultPhysicsSpace
public interface PhysicsSpace<T> extends Projection<T>
- Author:
- Eric Tatara
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addObject(T object, com.bulletphysics.dynamics.RigidBody body)
float[]
getGravity()
float[]
getLinearVelocity(T Object)
int
getMaxSubSteps()
float
getStepSize()
com.bulletphysics.linearmath.Transform
getTransformForObject(T object)
void
setGravity(float x, float y, float z)
void
setLinearVelocity(T object, float x, float y, float z)
void
setMaxSubSteps(int maxSubSteps)
void
setStepSize(float stepSize)
void
step()
Manually step the physics space dynamics-
Methods inherited from interface repast.simphony.space.projection.Projection
addProjectionListener, evaluate, getName, getProjectionListeners, removeProjectionListener
-
-
-
-
Method Detail
-
step
void step()
Manually step the physics space dynamics- Parameters:
timeStep
-
-
getTransformForObject
com.bulletphysics.linearmath.Transform getTransformForObject(T object)
-
addObject
boolean addObject(T object, com.bulletphysics.dynamics.RigidBody body)
-
setGravity
void setGravity(float x, float y, float z)
-
getGravity
float[] getGravity()
-
getStepSize
float getStepSize()
-
setStepSize
void setStepSize(float stepSize)
-
getMaxSubSteps
int getMaxSubSteps()
-
setMaxSubSteps
void setMaxSubSteps(int maxSubSteps)
-
setLinearVelocity
void setLinearVelocity(T object, float x, float y, float z)
-
getLinearVelocity
float[] getLinearVelocity(T Object)
-
-