@NoOffset @Properties(inherit=BulletDynamics.class) public class btGearConstraint extends btTypedConstraint
btTypedConstraint.btConstraintInfo1, btTypedConstraint.btConstraintInfo2Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btGearConstraint(btRigidBody rbA,
btRigidBody rbB,
btVector3 axisInA,
btVector3 axisInB) |
btGearConstraint(btRigidBody rbA,
btRigidBody rbB,
btVector3 axisInA,
btVector3 axisInB,
double ratio) |
btGearConstraint(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculateSerializeBufferSize() |
btVector3 |
getAxisA() |
btVector3 |
getAxisB() |
void |
getInfo1(btTypedConstraint.btConstraintInfo1 info)
internal method used by the constraint solver, don't use them directly
|
void |
getInfo2(btTypedConstraint.btConstraintInfo2 info)
internal method used by the constraint solver, don't use them directly
|
double |
getParam(int num) |
double |
getParam(int num,
int axis)
return the local value of parameter
|
double |
getRatio() |
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
void |
setAxisA(btVector3 axisA) |
void |
setAxisB(btVector3 axisB) |
void |
setParam(int num,
double value) |
void |
setParam(int num,
double value,
int axis)
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5).
|
void |
setRatio(double ratio) |
buildJacobian, enableFeedback, 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 btGearConstraint(Pointer p)
Pointer(Pointer).public btGearConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btVector3 axisInA, @Const @ByRef btVector3 axisInB, @Cast(value="btScalar") double ratio)
public btGearConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btVector3 axisInA, @Const @ByRef btVector3 axisInB)
public void getInfo1(btTypedConstraint.btConstraintInfo1 info)
getInfo1 in class btTypedConstraintpublic void getInfo2(btTypedConstraint.btConstraintInfo2 info)
getInfo2 in class btTypedConstraintpublic void setParam(int num,
@Cast(value="btScalar")
double value,
int axis)
btTypedConstraintsetParam in class btTypedConstraintpublic void setParam(int num,
@Cast(value="btScalar")
double value)
setParam in class btTypedConstraint@Cast(value="btScalar") public double getParam(int num, int axis)
getParam in class btTypedConstraint@Cast(value="btScalar") public double getParam(int num)
getParam in class btTypedConstraintpublic int calculateSerializeBufferSize()
calculateSerializeBufferSize in class btTypedConstraint@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
serialize in class btTypedConstraintCopyright © 2024. All rights reserved.