APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.physics.bullet.dynamics

public Class btSliderConstraint

extends btTypedConstraint
Class Inheritance
Imports
com.badlogic.gdx.physics.bullet.linearmath.*, com.badlogic.gdx.physics.bullet.collision.*, com.badlogic.gdx.math.Vector3, .Matrix4

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
protected
btSliderConstraint(final String className, long cPtr, boolean cMemoryOwn)

public
btSliderConstraint(long cPtr, boolean cMemoryOwn)

Construct a new btSliderConstraint, normally you should not need this constructor it's intended for low-level usage.

public
btSliderConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB, boolean useLinearReferenceFrameA)

public
btSliderConstraint(btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameA)

Method Summary

Modifier and TypeMethod and Description
public void
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.delete.

Deletes the bullet object this class encapsulates.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

public Vector3
public Vector3
public float
public float
public Matrix4
public Matrix4
public static long
public float
public float
public float
public float
public float
public float
public int
public Matrix4
public Matrix4
public Matrix4
public Matrix4
public void
public void
getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 linVelA, Vector3 linVelB, float rbAinvMass, float rbBinvMass)

public float
public float
public float
public float
public float
public float
public float
public float
public boolean
public boolean
public float
public float
public float
public float
public float
public float
public btRigidBody
public btRigidBody
public float
public float
public float
public float
public float
public float
public boolean
public boolean
public float
public float
public float
public float
public boolean
public boolean
public void
public void
public void
public void
public long
public long
public long
public long
protected void
public void
setDampingDirAng(float dampingDirAng)

public void
setDampingDirLin(float dampingDirLin)

public void
setDampingLimAng(float dampingLimAng)

public void
setDampingLimLin(float dampingLimLin)

public void
setDampingOrthoAng(float dampingOrthoAng)

public void
setDampingOrthoLin(float dampingOrthoLin)

public void
setFrames(Matrix4 frameA, Matrix4 frameB)

public void
setLowerAngLimit(float lowerLimit)

public void
setLowerLinLimit(float lowerLimit)

public void
setMaxAngMotorForce(float maxAngMotorForce)

public void
setMaxLinMotorForce(float maxLinMotorForce)

public void
public void
public void
setPoweredAngMotor(boolean onOff)

public void
setPoweredLinMotor(boolean onOff)

public void
setRestitutionDirAng(float restitutionDirAng)

public void
setRestitutionDirLin(float restitutionDirLin)

public void
setRestitutionLimAng(float restitutionLimAng)

public void
setRestitutionLimLin(float restitutionLimLin)

public void
setRestitutionOrthoAng(float restitutionOrthoAng)

public void
setRestitutionOrthoLin(float restitutionOrthoLin)

public void
setSoftnessDirAng(float softnessDirAng)

public void
setSoftnessDirLin(float softnessDirLin)

public void
setSoftnessLimAng(float softnessLimAng)

public void
setSoftnessLimLin(float softnessLimLin)

public void
setSoftnessOrthoAng(float softnessOrthoAng)

public void
setSoftnessOrthoLin(float softnessOrthoLin)

public void
setTargetAngMotorVelocity(float targetAngMotorVelocity)

public void
setTargetLinMotorVelocity(float targetLinMotorVelocity)

public void
setUpperAngLimit(float upperLimit)

public void
setUpperLinLimit(float upperLimit)

public void
setUseFrameOffset(boolean frameOffsetOnOff)

public void
public void
Inherited from com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint:
buildJacobiancalculateSerializeBufferSizeenableFeedbackgetAppliedImpulsegetBreakingImpulseThresholdgetConstraintTypegetCPtrgetDbgDrawSizegetFixedBodygetInfo1getInfo2getJointFeedbackgetJointFeedbackConstgetOverrideNumSolverIterationsgetRigidBodyAgetRigidBodyBgetUidgetUserConstraintIdgetUserConstraintPtrgetUserConstraintTypeinternalGetAppliedImpulseinternalSetAppliedImpulseisEnabledneedsFeedbackserializesetBreakingImpulseThresholdsetDbgDrawSizesetEnabledsetJointFeedbacksetOverrideNumSolverIterationssetupSolverConstraintsetUserConstraintIdsetUserConstraintPtrsetUserConstraintTypesolveConstraintObsolete

Field Detail

swigCPtrback to summary
private long swigCPtr

Hides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.swigCPtr.

Constructor Detail

btSliderConstraintback to summary
protected btSliderConstraint(final String className, long cPtr, boolean cMemoryOwn)
btSliderConstraintback to summary
public btSliderConstraint(long cPtr, boolean cMemoryOwn)

Construct a new btSliderConstraint, normally you should not need this constructor it's intended for low-level usage.

btSliderConstraintback to summary
public btSliderConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB, boolean useLinearReferenceFrameA)
btSliderConstraintback to summary
public btSliderConstraint(btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameA)

Method Detail

calculateTransformsback to summary
public void calculateTransforms(Matrix4 transA, Matrix4 transB)
deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.delete.

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
finalizeback to summary
protected void finalize() throws Throwable

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.finalize.

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
getAncorInAback to summary
public Vector3 getAncorInA()
getAncorInBback to summary
public Vector3 getAncorInB()
getAngDepthback to summary
public float getAngDepth()
getAngularPosback to summary
public float getAngularPos()
getCalculatedTransformAback to summary
public Matrix4 getCalculatedTransformA()
getCalculatedTransformBback to summary
public Matrix4 getCalculatedTransformB()
getCPtrback to summary
public static long getCPtr(btSliderConstraint obj)
getDampingDirAngback to summary
public float getDampingDirAng()
getDampingDirLinback to summary
public float getDampingDirLin()
getDampingLimAngback to summary
public float getDampingLimAng()
getDampingLimLinback to summary
public float getDampingLimLin()
getDampingOrthoAngback to summary
public float getDampingOrthoAng()
getDampingOrthoLinback to summary
public float getDampingOrthoLin()
getFlagsback to summary
public int getFlags()
getFrameOffsetAback to summary
public Matrix4 getFrameOffsetA()
getFrameOffsetAConstback to summary
public Matrix4 getFrameOffsetAConst()
getFrameOffsetBback to summary
public Matrix4 getFrameOffsetB()
getFrameOffsetBConstback to summary
public Matrix4 getFrameOffsetBConst()
getInfo1NonVirtualback to summary
public void getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info)
getInfo2NonVirtualback to summary
public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 linVelA, Vector3 linVelB, float rbAinvMass, float rbBinvMass)
getLinDepthback to summary
public float getLinDepth()
getLinearPosback to summary
public float getLinearPos()
getLowerAngLimitback to summary
public float getLowerAngLimit()
getLowerLinLimitback to summary
public float getLowerLinLimit()
getMaxAngMotorForceback to summary
public float getMaxAngMotorForce()
getMaxLinMotorForceback to summary
public float getMaxLinMotorForce()
getParamback to summary
public float getParam(int num, int axis)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.getParam.

getParamback to summary
public float getParam(int num)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.getParam.

getPoweredAngMotorback to summary
public boolean getPoweredAngMotor()
getPoweredLinMotorback to summary
public boolean getPoweredLinMotor()
getRestitutionDirAngback to summary
public float getRestitutionDirAng()
getRestitutionDirLinback to summary
public float getRestitutionDirLin()
getRestitutionLimAngback to summary
public float getRestitutionLimAng()
getRestitutionLimLinback to summary
public float getRestitutionLimLin()
getRestitutionOrthoAngback to summary
public float getRestitutionOrthoAng()
getRestitutionOrthoLinback to summary
public float getRestitutionOrthoLin()
getRigidBodyAConstback to summary
public btRigidBody getRigidBodyAConst()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.getRigidBodyAConst.

getRigidBodyBConstback to summary
public btRigidBody getRigidBodyBConst()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.getRigidBodyBConst.

getSoftnessDirAngback to summary
public float getSoftnessDirAng()
getSoftnessDirLinback to summary
public float getSoftnessDirLin()
getSoftnessLimAngback to summary
public float getSoftnessLimAng()
getSoftnessLimLinback to summary
public float getSoftnessLimLin()
getSoftnessOrthoAngback to summary
public float getSoftnessOrthoAng()
getSoftnessOrthoLinback to summary
public float getSoftnessOrthoLin()
getSolveAngLimitback to summary
public boolean getSolveAngLimit()
getSolveLinLimitback to summary
public boolean getSolveLinLimit()
getTargetAngMotorVelocityback to summary
public float getTargetAngMotorVelocity()
getTargetLinMotorVelocityback to summary
public float getTargetLinMotorVelocity()
getUpperAngLimitback to summary
public float getUpperAngLimit()
getUpperLinLimitback to summary
public float getUpperLinLimit()
getUseFrameOffsetback to summary
public boolean getUseFrameOffset()
getUseLinearReferenceFrameAback to summary
public boolean getUseLinearReferenceFrameA()
operatorDeleteback to summary
public void operatorDelete(long ptr)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorDelete.

operatorDeleteback to summary
public void operatorDelete(long arg0, long arg1)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorDelete.

operatorDeleteArrayback to summary
public void operatorDeleteArray(long ptr)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorDeleteArray.

operatorDeleteArrayback to summary
public void operatorDeleteArray(long arg0, long arg1)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorDeleteArray.

operatorNewback to summary
public long operatorNew(long sizeInBytes)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorNew.

operatorNewback to summary
public long operatorNew(long arg0, long ptr)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorNew.

operatorNewArrayback to summary
public long operatorNewArray(long sizeInBytes)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorNewArray.

operatorNewArrayback to summary
public long operatorNewArray(long arg0, long ptr)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.operatorNewArray.

resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.reset.

Annotations
@Override
setDampingDirAngback to summary
public void setDampingDirAng(float dampingDirAng)
setDampingDirLinback to summary
public void setDampingDirLin(float dampingDirLin)
setDampingLimAngback to summary
public void setDampingLimAng(float dampingLimAng)
setDampingLimLinback to summary
public void setDampingLimLin(float dampingLimLin)
setDampingOrthoAngback to summary
public void setDampingOrthoAng(float dampingOrthoAng)
setDampingOrthoLinback to summary
public void setDampingOrthoLin(float dampingOrthoLin)
setFramesback to summary
public void setFrames(Matrix4 frameA, Matrix4 frameB)
setLowerAngLimitback to summary
public void setLowerAngLimit(float lowerLimit)
setLowerLinLimitback to summary
public void setLowerLinLimit(float lowerLimit)
setMaxAngMotorForceback to summary
public void setMaxAngMotorForce(float maxAngMotorForce)
setMaxLinMotorForceback to summary
public void setMaxLinMotorForce(float maxLinMotorForce)
setParamback to summary
public void setParam(int num, float value, int axis)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.setParam.

setParamback to summary
public void setParam(int num, float value)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btTypedConstraint.setParam.

setPoweredAngMotorback to summary
public void setPoweredAngMotor(boolean onOff)
setPoweredLinMotorback to summary
public void setPoweredLinMotor(boolean onOff)
setRestitutionDirAngback to summary
public void setRestitutionDirAng(float restitutionDirAng)
setRestitutionDirLinback to summary
public void setRestitutionDirLin(float restitutionDirLin)
setRestitutionLimAngback to summary
public void setRestitutionLimAng(float restitutionLimAng)
setRestitutionLimLinback to summary
public void setRestitutionLimLin(float restitutionLimLin)
setRestitutionOrthoAngback to summary
public void setRestitutionOrthoAng(float restitutionOrthoAng)
setRestitutionOrthoLinback to summary
public void setRestitutionOrthoLin(float restitutionOrthoLin)
setSoftnessDirAngback to summary
public void setSoftnessDirAng(float softnessDirAng)
setSoftnessDirLinback to summary
public void setSoftnessDirLin(float softnessDirLin)
setSoftnessLimAngback to summary
public void setSoftnessLimAng(float softnessLimAng)
setSoftnessLimLinback to summary
public void setSoftnessLimLin(float softnessLimLin)
setSoftnessOrthoAngback to summary
public void setSoftnessOrthoAng(float softnessOrthoAng)
setSoftnessOrthoLinback to summary
public void setSoftnessOrthoLin(float softnessOrthoLin)
setTargetAngMotorVelocityback to summary
public void setTargetAngMotorVelocity(float targetAngMotorVelocity)
setTargetLinMotorVelocityback to summary
public void setTargetLinMotorVelocity(float targetLinMotorVelocity)
setUpperAngLimitback to summary
public void setUpperAngLimit(float upperLimit)
setUpperLinLimitback to summary
public void setUpperLinLimit(float upperLimit)
setUseFrameOffsetback to summary
public void setUseFrameOffset(boolean frameOffsetOnOff)
testAngLimitsback to summary
public void testAngLimits()
testLinLimitsback to summary
public void testLinLimits()