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

public Class btTypedConstraint

extends btTypedObject
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.physics.bullet.dynamics.btConeTwistConstraint, com.badlogic.gdx.physics.bullet.dynamics.btContactConstraint, com.badlogic.gdx.physics.bullet.dynamics.btSliderConstraint, com.badlogic.gdx.physics.bullet.dynamics.btHingeConstraint, com.badlogic.gdx.physics.bullet.dynamics.btGearConstraint, com.badlogic.gdx.physics.bullet.dynamics.btGeneric6DofConstraint, com.badlogic.gdx.physics.bullet.dynamics.btGeneric6DofSpring2Constraint, com.badlogic.gdx.physics.bullet.dynamics.btPoint2PointConstraint
Imports
com.badlogic.gdx.physics.bullet.BulletBase, com.badlogic.gdx.physics.bullet.linearmath.*, com.badlogic.gdx.physics.bullet.collision.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

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

public
btTypedConstraint(long cPtr, boolean cMemoryOwn)

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

Method Summary

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

Overrides com.badlogic.gdx.physics.bullet.linearmath.btTypedObject.delete.

Deletes the bullet object this class encapsulates.

public void
enableFeedback(boolean needsFeedback)

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.linearmath.btTypedObject.finalize.

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

public float
public float
public int
public static long
public float
public static btRigidBody
public void
public void
public btJointFeedback
public btJointFeedback
public int
public float
getParam(int num, int axis)

public float
getParam(int num)

public btRigidBody
public btRigidBody
public btRigidBody
public btRigidBody
public int
public int
public long
public int
public float
public void
internalSetAppliedImpulse(float appliedImpulse)

public boolean
public boolean
public void
operatorDelete(long ptr)

public void
operatorDelete(long arg0, long arg1)

public void
public void
operatorDeleteArray(long arg0, long arg1)

public long
operatorNew(long sizeInBytes)

public long
operatorNew(long arg0, long ptr)

public long
operatorNewArray(long sizeInBytes)

public long
operatorNewArray(long arg0, long ptr)

protected void
public String
serialize(long dataBuffer, btSerializer serializer)

public void
setBreakingImpulseThreshold(float threshold)

public void
setDbgDrawSize(float dbgDrawSize)

public void
setEnabled(boolean enabled)

public void
public void
setOverrideNumSolverIterations(int overideNumIterations)

public void
setParam(int num, float value, int axis)

public void
setParam(int num, float value)

public void
setupSolverConstraint(SWIGTYPE_p_btAlignedObjectArrayT_btSolverConstraint_t ca, int solverBodyA, int solverBodyB, float timeStep)

public void
public void
public void
setUserConstraintType(int userConstraintType)

public void
Inherited from com.badlogic.gdx.physics.bullet.linearmath.btTypedObject:
getCPtrgetObjectTypesetObjectType

Field Detail

swigCPtrback to summary
private long swigCPtr

Hides com.badlogic.gdx.physics.bullet.linearmath.btTypedObject.swigCPtr.

Constructor Detail

btTypedConstraintback to summary
protected btTypedConstraint(final String className, long cPtr, boolean cMemoryOwn)
btTypedConstraintback to summary
public btTypedConstraint(long cPtr, boolean cMemoryOwn)

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

Method Detail

buildJacobianback to summary
public void buildJacobian()
calculateSerializeBufferSizeback to summary
public int calculateSerializeBufferSize()
deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.linearmath.btTypedObject.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
enableFeedbackback to summary
public void enableFeedback(boolean needsFeedback)
finalizeback to summary
protected void finalize() throws Throwable

Overrides com.badlogic.gdx.physics.bullet.linearmath.btTypedObject.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
getAppliedImpulseback to summary
public float getAppliedImpulse()
getBreakingImpulseThresholdback to summary
public float getBreakingImpulseThreshold()
getConstraintTypeback to summary
public int getConstraintType()
getCPtrback to summary
public static long getCPtr(btTypedConstraint obj)
getDbgDrawSizeback to summary
public float getDbgDrawSize()
getFixedBodyback to summary
public static btRigidBody getFixedBody()
getInfo1back to summary
public void getInfo1(btTypedConstraint.btConstraintInfo1 info)
getInfo2back to summary
public void getInfo2(btTypedConstraint.btConstraintInfo2 info)
getJointFeedbackback to summary
public btJointFeedback getJointFeedback()
getJointFeedbackConstback to summary
public btJointFeedback getJointFeedbackConst()
getOverrideNumSolverIterationsback to summary
public int getOverrideNumSolverIterations()
getParamback to summary
public float getParam(int num, int axis)
getParamback to summary
public float getParam(int num)
getRigidBodyAback to summary
public btRigidBody getRigidBodyA()
getRigidBodyAConstback to summary
public btRigidBody getRigidBodyAConst()
getRigidBodyBback to summary
public btRigidBody getRigidBodyB()
getRigidBodyBConstback to summary
public btRigidBody getRigidBodyBConst()
getUidback to summary
public int getUid()
getUserConstraintIdback to summary
public int getUserConstraintId()
getUserConstraintPtrback to summary
public long getUserConstraintPtr()
getUserConstraintTypeback to summary
public int getUserConstraintType()
internalGetAppliedImpulseback to summary
public float internalGetAppliedImpulse()
internalSetAppliedImpulseback to summary
public void internalSetAppliedImpulse(float appliedImpulse)
isEnabledback to summary
public boolean isEnabled()
needsFeedbackback to summary
public boolean needsFeedback()
operatorDeleteback to summary
public void operatorDelete(long ptr)
operatorDeleteback to summary
public void operatorDelete(long arg0, long arg1)
operatorDeleteArrayback to summary
public void operatorDeleteArray(long ptr)
operatorDeleteArrayback to summary
public void operatorDeleteArray(long arg0, long arg1)
operatorNewback to summary
public long operatorNew(long sizeInBytes)
operatorNewback to summary
public long operatorNew(long arg0, long ptr)
operatorNewArrayback to summary
public long operatorNewArray(long sizeInBytes)
operatorNewArrayback to summary
public long operatorNewArray(long arg0, long ptr)
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.linearmath.btTypedObject.reset.

Annotations
@Override
serializeback to summary
public String serialize(long dataBuffer, btSerializer serializer)
setBreakingImpulseThresholdback to summary
public void setBreakingImpulseThreshold(float threshold)
setDbgDrawSizeback to summary
public void setDbgDrawSize(float dbgDrawSize)
setEnabledback to summary
public void setEnabled(boolean enabled)
setJointFeedbackback to summary
public void setJointFeedback(btJointFeedback jointFeedback)
setOverrideNumSolverIterationsback to summary
public void setOverrideNumSolverIterations(int overideNumIterations)
setParamback to summary
public void setParam(int num, float value, int axis)
setParamback to summary
public void setParam(int num, float value)
setupSolverConstraintback to summary
public void setupSolverConstraint(SWIGTYPE_p_btAlignedObjectArrayT_btSolverConstraint_t ca, int solverBodyA, int solverBodyB, float timeStep)
setUserConstraintIdback to summary
public void setUserConstraintId(int uid)
setUserConstraintPtrback to summary
public void setUserConstraintPtr(long ptr)
setUserConstraintTypeback to summary
public void setUserConstraintType(int userConstraintType)
solveConstraintObsoleteback to summary
public void solveConstraintObsolete(btSolverBody arg0, btSolverBody arg1, float arg2)
com.badlogic.gdx.physics.bullet.dynamics back to summary

public Class btTypedConstraint.btConstraintInfo1

extends BulletBase
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

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

public
btConstraintInfo1(long cPtr, boolean cMemoryOwn)

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

public

Method Summary

Modifier and TypeMethod and Description
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

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

public static long
public int
public int
protected void
reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

public void
setNub(int value)

public void
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
constructdestroydisposeequalsgetCPointerhashCodehasOwnershipisDisposedisObtainedobtainreleasereleaseOwnershiptakeOwnershiptoString

Field Detail

swigCPtrback to summary
private long swigCPtr

Constructor Detail

btConstraintInfo1back to summary
protected btConstraintInfo1(final String className, long cPtr, boolean cMemoryOwn)
btConstraintInfo1back to summary
public btConstraintInfo1(long cPtr, boolean cMemoryOwn)

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

btConstraintInfo1back to summary
public btConstraintInfo1()

Method Detail

deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.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.BulletBase.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
getCPtrback to summary
public static long getCPtr(btTypedConstraint.btConstraintInfo1 obj)
getNubback to summary
public int getNub()
getNumConstraintRowsback to summary
public int getNumConstraintRows()
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

Annotations
@Override
setNubback to summary
public void setNub(int value)
setNumConstraintRowsback to summary
public void setNumConstraintRows(int value)
com.badlogic.gdx.physics.bullet.dynamics back to summary

public Class btTypedConstraint.btConstraintInfo2

extends BulletBase
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

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

public
btConstraintInfo2(long cPtr, boolean cMemoryOwn)

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

public

Method Summary

Modifier and TypeMethod and Description
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

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

public SWIGTYPE_p_float
public SWIGTYPE_p_float
public static long
public float
public float
public float
public SWIGTYPE_p_float
public SWIGTYPE_p_float
public SWIGTYPE_p_float
public SWIGTYPE_p_float
public SWIGTYPE_p_float
public int
public int
public SWIGTYPE_p_float
protected void
reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

public void
public void
public void
setDamping(float value)

public void
setErp(float value)

public void
setFps(float value)

public void
public void
public void
public void
public void
public void
setNumIterations(int value)

public void
setRowskip(int value)

public void
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
constructdestroydisposeequalsgetCPointerhashCodehasOwnershipisDisposedisObtainedobtainreleasereleaseOwnershiptakeOwnershiptoString

Field Detail

swigCPtrback to summary
private long swigCPtr

Constructor Detail

btConstraintInfo2back to summary
protected btConstraintInfo2(final String className, long cPtr, boolean cMemoryOwn)
btConstraintInfo2back to summary
public btConstraintInfo2(long cPtr, boolean cMemoryOwn)

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

btConstraintInfo2back to summary
public btConstraintInfo2()

Method Detail

deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.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.BulletBase.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
getCfmback to summary
public SWIGTYPE_p_float getCfm()
getConstraintErrorback to summary
public SWIGTYPE_p_float getConstraintError()
getCPtrback to summary
public static long getCPtr(btTypedConstraint.btConstraintInfo2 obj)
getDampingback to summary
public float getDamping()
getErpback to summary
public float getErp()
getFpsback to summary
public float getFps()
getJ1angularAxisback to summary
public SWIGTYPE_p_float getJ1angularAxis()
getJ1linearAxisback to summary
public SWIGTYPE_p_float getJ1linearAxis()
getJ2angularAxisback to summary
public SWIGTYPE_p_float getJ2angularAxis()
getJ2linearAxisback to summary
public SWIGTYPE_p_float getJ2linearAxis()
getLowerLimitback to summary
public SWIGTYPE_p_float getLowerLimit()
getNumIterationsback to summary
public int getNumIterations()
getRowskipback to summary
public int getRowskip()
getUpperLimitback to summary
public SWIGTYPE_p_float getUpperLimit()
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

Annotations
@Override
setCfmback to summary
public void setCfm(SWIGTYPE_p_float value)
setConstraintErrorback to summary
public void setConstraintError(SWIGTYPE_p_float value)
setDampingback to summary
public void setDamping(float value)
setErpback to summary
public void setErp(float value)
setFpsback to summary
public void setFps(float value)
setJ1angularAxisback to summary
public void setJ1angularAxis(SWIGTYPE_p_float value)
setJ1linearAxisback to summary
public void setJ1linearAxis(SWIGTYPE_p_float value)
setJ2angularAxisback to summary
public void setJ2angularAxis(SWIGTYPE_p_float value)
setJ2linearAxisback to summary
public void setJ2linearAxis(SWIGTYPE_p_float value)
setLowerLimitback to summary
public void setLowerLimit(SWIGTYPE_p_float value)
setNumIterationsback to summary
public void setNumIterations(int value)
setRowskipback to summary
public void setRowskip(int value)
setUpperLimitback to summary
public void setUpperLimit(SWIGTYPE_p_float value)