@NoOffset @Properties(inherit=BulletDynamics.class) public class btGeneric6DofSpringConstraint extends btGeneric6DofConstraint
DOF index used in enableSpring() and setStiffness() means: 0 : translation X 1 : translation Y 2 : translation Z 3 : rotation X (3rd Euler rotational around new position of X axis, range [-PI+epsilon, PI-epsilon] ) 4 : rotation Y (2nd Euler rotational around new position of Y axis, range [-PI/2+epsilon, PI/2-epsilon] ) 5 : rotation Z (1st Euler rotational around Z axis, range [-PI+epsilon, PI-epsilon] )
btTypedConstraint.btConstraintInfo1, btTypedConstraint.btConstraintInfo2Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btGeneric6DofSpringConstraint(btRigidBody rbA,
btRigidBody rbB,
btTransform frameInA,
btTransform frameInB,
boolean useLinearReferenceFrameA) |
btGeneric6DofSpringConstraint(btRigidBody rbB,
btTransform frameInB,
boolean useLinearReferenceFrameB) |
btGeneric6DofSpringConstraint(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculateSerializeBufferSize() |
void |
enableSpring(int index,
boolean onOff) |
double |
getDamping(int index) |
double |
getEquilibriumPoint(int index) |
void |
getInfo2(btTypedConstraint.btConstraintInfo2 info)
internal method used by the constraint solver, don't use them directly
|
double |
getStiffness(int index) |
boolean |
isSpringEnabled(int index) |
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
void |
setAxis(btVector3 axis1,
btVector3 axis2) |
void |
setDamping(int index,
double damping) |
void |
setEquilibriumPoint() |
void |
setEquilibriumPoint(int index) |
void |
setEquilibriumPoint(int index,
double val) |
void |
setStiffness(int index,
double stiffness) |
buildJacobian, calcAnchorPos, calculateTransforms, calculateTransforms, get_limit_motor_info2, get_limit_motor_info2, getAngle, getAngularLowerLimit, getAngularUpperLimit, getAxis, getCalculatedTransformA, getCalculatedTransformB, getFlags, getFrameOffsetA, getFrameOffsetB, getInfo1, getInfo1NonVirtual, getInfo2NonVirtual, getLinearLowerLimit, getLinearUpperLimit, getParam, getParam, getRelativePivotPosition, getRotationalLimitMotor, getTranslationalLimitMotor, getUseFrameOffset, getUseLinearReferenceFrameA, isLimited, m_useSolveConstraintObsolete, m_useSolveConstraintObsolete, setAngularLowerLimit, setAngularUpperLimit, setFrames, setLimit, setLinearLowerLimit, setLinearUpperLimit, setParam, setParam, setUseFrameOffset, setUseLinearReferenceFrameA, testAngularLimitMotor, updateRHSenableFeedback, getAppliedImpulse, getBreakingImpulseThreshold, getConstraintType, getDbgDrawSize, getFixedBody, getJointFeedback, getOverrideNumSolverIterations, getRigidBodyA, getRigidBodyB, getUid, getUserConstraintId, getUserConstraintPtr, getUserConstraintType, internalGetAppliedImpulse, internalSetAppliedImpulse, isEnabled, needsFeedback, setBreakingImpulseThreshold, setDbgDrawSize, setEnabled, setJointFeedback, setOverrideNumSolverIterations, setupSolverConstraint, setUserConstraintId, setUserConstraintPtr, setUserConstraintType, solveConstraintObsoletegetObjectType, m_objectType, m_objectTypeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btGeneric6DofSpringConstraint(Pointer p)
Pointer(Pointer).public btGeneric6DofSpringConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btTransform frameInA, @Const @ByRef btTransform frameInB, @Cast(value="bool") boolean useLinearReferenceFrameA)
public btGeneric6DofSpringConstraint(@ByRef btRigidBody rbB, @Const @ByRef btTransform frameInB, @Cast(value="bool") boolean useLinearReferenceFrameB)
public void setEquilibriumPoint()
public void setEquilibriumPoint(int index)
public void setAxis(@Const @ByRef btVector3 axis1, @Const @ByRef btVector3 axis2)
setAxis in class btGeneric6DofConstraintpublic void getInfo2(btTypedConstraint.btConstraintInfo2 info)
btTypedConstraintgetInfo2 in class btGeneric6DofConstraintpublic int calculateSerializeBufferSize()
calculateSerializeBufferSize in class btGeneric6DofConstraint@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
serialize in class btGeneric6DofConstraintCopyright © 2024. All rights reserved.