-
- Type Parameters:
T
- thePhysicsBody
type
- All Superinterfaces:
DataContainer
,Joint<T>
,Ownable
,Shiftable
- All Known Implementing Classes:
AbstractPairedBodyJoint
,AngleJoint
,DistanceJoint
,FrictionJoint
,MotorJoint
,PrismaticJoint
,PulleyJoint
,RevoluteJoint
,WeldJoint
,WheelJoint
public interface PairedBodyJoint<T extends PhysicsBody> extends Joint<T>, Shiftable, DataContainer, Ownable
Represents constrained motion between twoPhysicsBody
s.- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- William Bittle
-
-
Field Summary
-
Fields inherited from interface Joint
SPRING_MODE_FREQUENCY, SPRING_MODE_STIFFNESS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getBody1()
Returns the first body.T
getBody2()
Returns the second body.T
getOtherBody(CollisionBody<?> body)
Returns the body that does not match the given body.-
Methods inherited from interface DataContainer
getUserData, setUserData
-
Methods inherited from interface Joint
getBodies, getBody, getBodyCount, getBodyIterator, getReactionForce, getReactionTorque, initializeConstraints, isCollisionAllowed, isEnabled, isMember, setCollisionAllowed, solvePositionConstraints, solveVelocityConstraints
-
-
-
-
Method Detail
-
getBody1
T getBody1()
Returns the first body.- Returns:
- T
-
getBody2
T getBody2()
Returns the second body.- Returns:
- T
-
getOtherBody
T getOtherBody(CollisionBody<?> body)
Returns the body that does not match the given body.If the given body is neither body1 or body2, null is returned.
- Parameters:
body
- the body- Returns:
- T
-
-