-
- All Known Subinterfaces:
BatchBroadphaseDetector<T,E>
,Bounds
,BroadphaseDetector<T,E>
,Collidable<T>
,CollisionBody<T>
,CollisionData<T,E>
,CollisionWorld<T,E,V>
,ContactCollisionData<T>
,ContactManager
,PhysicsBody
,PhysicsWorld<T,V>
- All Known Implementing Classes:
AbstractBounds
,AbstractBroadphaseDetector
,AbstractCollidable
,AbstractCollisionBody
,AbstractCollisionWorld
,AbstractPhysicsBody
,AbstractPhysicsWorld
,AngleJoint
,AxisAlignedBounds
,Body
,BruteForceBroadphase
,Constraint
,ContactConstraint
,DefaultContactManager
,DistanceJoint
,DynamicAABBTree
,FrictionJoint
,Joint
,LazyAABBTree
,Manifold
,ManifoldPoint
,MotorJoint
,Penetration
,PinJoint
,PrismaticJoint
,PulleyJoint
,Raycast
,RevoluteJoint
,RopeJoint
,Sap
,Separation
,SimpleContactManager
,WarmStartingContactManager
,WeldJoint
,WheelJoint
,World
,World
,WorldCollisionData
public interface Shiftable
Represents an object that can be shifted in the x and y plane.Shifting is defined as repositioning for better accuracy. In floating point as an object's position drifts farther from the origin, the accuracy of calculations begin to suffer. One way to mitigate this problem is to shift all coordinates back to a reasonable place. Classes that implement this interface support this process.
- Since:
- 3.2.0
- Version:
- 3.2.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
shift(Vector2 shift)
Translates the object to match the given coordinate shift.
-
-
-
Method Detail
-
shift
void shift(Vector2 shift)
Translates the object to match the given coordinate shift.- Parameters:
shift
- the amount to shift along the x and y axes
-
-