- Object
-
- AbstractCollisionWorld<T,BodyFixture,V>
-
- AbstractPhysicsWorld<T,WorldCollisionData<T>>
-
- World<T>
-
- Type Parameters:
T
- thePhysicsBody
type
- All Implemented Interfaces:
DataContainer
,Shiftable
,CollisionWorld<T,BodyFixture,WorldCollisionData<T>>
,PhysicsWorld<T,WorldCollisionData<T>>
public class World<T extends PhysicsBody> extends AbstractPhysicsWorld<T,WorldCollisionData<T>>
Full implementation of both theCollisionWorld
andPhysicsWorld
interfaces.NOTE: This class uses the
AbstractCollisionBody.setOwner(Object)
andAbstractCollisionBody.setFixtureModificationHandler(org.dyn4j.collision.FixtureModificationHandler)
methods to handle certain scenarios like fixture removal on a body or bodies added to more than one world. Likewise, theJoint.setOwner(Object)
method is used to handle joints being added to the world. Callers should NOT use these methods.- Since:
- 4.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Field Summary
-
Fields inherited from interface CollisionWorld
DEFAULT_INITIAL_BODY_CAPACITY
-
Fields inherited from interface PhysicsWorld
DEFAULT_INITIAL_JOINT_CAPACITY, EARTH_GRAVITY, ZERO_GRAVITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TimeStep
getStep()
Deprecated.Deprecated in 4.0.0.-
Methods inherited from class AbstractPhysicsWorld
addBody, addContactListener, addDestructionListener, addJoint, addStepListener, addTimeOfImpactListener, containsJoint, getAccumulatedTime, getCoefficientMixer, getContactConstraintSolver, getContactListeners, getContacts, getDestructionListeners, getGravity, getInContactBodies, getJoinedBodies, getJoint, getJointCount, getJointIterator, getJoints, getJoints, getSettings, getStepListeners, getTimeOfImpactListeners, getTimeOfImpactSolver, getTimeStep, isEmpty, isInContact, isJoined, isJointCollisionAllowed, isUpdateRequired, removeAllBodies, removeAllBodies, removeAllBodiesAndJoints, removeAllBodiesAndJoints, removeAllContactListeners, removeAllDestructionListeners, removeAllJoints, removeAllJoints, removeAllListeners, removeAllStepListeners, removeAllTimeOfImpactListeners, removeBody, removeBody, removeBody, removeBody, removeContactListener, removeDestructionListener, removeJoint, removeJoint, removeStepListener, removeTimeOfImpactListener, setAccumulatedTime, setCoefficientMixer, setContactConstraintSolver, setGravity, setGravity, setSettings, setTimeOfImpactSolver, setUpdateRequired, shift, step, step, update, update, update, update, updatev
-
Methods inherited from class AbstractCollisionWorld
addBoundsListener, addCollisionListener, containsBody, convexCast, convexCastClosest, convexCastClosest, convexCastIterator, detect, detect, detect, detect, detectIterator, detectIterator, detectIterator, detectIterator, getBodies, getBody, getBodyCount, getBodyIterator, getBounds, getBoundsListeners, getBroadphaseDetector, getBroadphaseFilter, getCollisionData, getCollisionDataIterator, getCollisionListeners, getManifoldSolver, getNarrowphaseDetector, getNarrowphasePostProcessor, getRaycastDetector, getTimeOfImpactDetector, getUserData, raycast, raycast, raycastClosest, raycastClosest, raycastIterator, raycastIterator, removeAllBoundsListeners, removeAllCollisionListeners, removeBoundsListener, removeCollisionListener, setBounds, setBroadphaseDetector, setBroadphaseFilter, setManifoldSolver, setNarrowphaseDetector, setNarrowphasePostProcessor, setRaycastDetector, setTimeOfImpactDetector, setUserData
-
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface CollisionWorld
addBoundsListener, addCollisionListener, containsBody, convexCast, convexCastClosest, convexCastClosest, convexCastIterator, detect, detect, detect, detect, detectIterator, detectIterator, detectIterator, detectIterator, getBodies, getBody, getBodyCount, getBodyIterator, getBounds, getBoundsListeners, getBroadphaseDetector, getBroadphaseFilter, getCollisionData, getCollisionDataIterator, getCollisionListeners, getManifoldSolver, getNarrowphaseDetector, getNarrowphasePostProcessor, getRaycastDetector, getTimeOfImpactDetector, raycast, raycast, raycastClosest, raycastClosest, raycastIterator, raycastIterator, removeAllBoundsListeners, removeAllCollisionListeners, removeBoundsListener, removeCollisionListener, setBounds, setBroadphaseDetector, setBroadphaseFilter, setManifoldSolver, setNarrowphaseDetector, setNarrowphasePostProcessor, setRaycastDetector, setTimeOfImpactDetector
-
Methods inherited from interface DataContainer
getUserData, setUserData
-
-
-
-
Method Detail
-
getStep
@Deprecated public TimeStep getStep()
Deprecated.Deprecated in 4.0.0. Use theAbstractPhysicsWorld.getTimeStep()
method instead.Returns the current time step information.- Returns:
TimeStep
-
-