Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public class ConstantVolumeJoint

  1. Object
  2. Joint
  3. ConstantVolumeJoint

Constructors

public ConstantVolumeJoint(World argWorld, ConstantVolumeJointDef def)

Methods

public Body[] getBodies()
public DistanceJoint[] getJoints()
public void inflate(float factor)
public void destructor()Override to handle destruction of joint
public void initVelocityConstraints(SolverData step)
public boolean solvePositionConstraints(SolverData step)This returns true if the position errors are within tolerance.
public void solveVelocityConstraints(SolverData step)
public void getAnchorA(Vec2 argOut)No-op
public void getAnchorB(Vec2 argOut)No-op
public void getReactionForce(float inv_dt, Vec2 argOut)No-op
public float getReactionTorque(float inv_dt)No-op

Inherited fields

Inherited methods

Constructor details

ConstantVolumeJoint

public ConstantVolumeJoint(World argWorld, ConstantVolumeJointDef def)

Method details

getBodies

public Body[] getBodies()

getJoints

public DistanceJoint[] getJoints()

inflate

public void inflate(float factor)

destructor

public void destructor()
Override to handle destruction of joint

initVelocityConstraints

public void initVelocityConstraints(SolverData step)

solvePositionConstraints

public boolean solvePositionConstraints(SolverData step)
This returns true if the position errors are within tolerance.

Parameters

step SolverData
the solver state for this step

Returns

true if the position errors are within tolerance

solveVelocityConstraints

public void solveVelocityConstraints(SolverData step)

getAnchorA

public void getAnchorA(Vec2 argOut)
No-op

Parameters

argOut Vec2
receives the anchor point

getAnchorB

public void getAnchorB(Vec2 argOut)
No-op

Parameters

argOut Vec2
receives the anchor point

getReactionForce

public void getReactionForce(float inv_dt, Vec2 argOut)
No-op

Parameters

inv_dt float
the inverse of the time step
argOut Vec2
receives the reaction force

getReactionTorque

public float getReactionTorque(float inv_dt)
No-op