@NoOffset @Properties(inherit=BulletDynamics.class) public class btHingeConstraint extends btTypedConstraint
btTypedConstraint.btConstraintInfo1, btTypedConstraint.btConstraintInfo2
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
btHingeConstraint(btRigidBody rbA,
btRigidBody rbB,
btTransform rbAFrame,
btTransform rbBFrame) |
btHingeConstraint(btRigidBody rbA,
btRigidBody rbB,
btTransform rbAFrame,
btTransform rbBFrame,
boolean useReferenceFrameA) |
btHingeConstraint(btRigidBody rbA,
btRigidBody rbB,
btVector3 pivotInA,
btVector3 pivotInB,
btVector3 axisInA,
btVector3 axisInB) |
btHingeConstraint(btRigidBody rbA,
btRigidBody rbB,
btVector3 pivotInA,
btVector3 pivotInB,
btVector3 axisInA,
btVector3 axisInB,
boolean useReferenceFrameA) |
btHingeConstraint(btRigidBody rbA,
btTransform rbAFrame) |
btHingeConstraint(btRigidBody rbA,
btTransform rbAFrame,
boolean useReferenceFrameA) |
btHingeConstraint(btRigidBody rbA,
btVector3 pivotInA,
btVector3 axisInA) |
btHingeConstraint(btRigidBody rbA,
btVector3 pivotInA,
btVector3 axisInA,
boolean useReferenceFrameA) |
btHingeConstraint(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
buildJacobian()
internal method used by the constraint solver, don't use them directly
|
int |
calculateSerializeBufferSize() |
void |
enableAngularMotor(boolean enableMotor,
double targetVelocity,
double maxMotorImpulse) |
void |
enableMotor(boolean enableMotor) |
btTransform |
getAFrame() |
boolean |
getAngularOnly() |
btTransform |
getBFrame() |
boolean |
getEnableAngularMotor() |
int |
getFlags() |
btTransform |
getFrameOffsetA() |
btTransform |
getFrameOffsetB() |
double |
getHingeAngle()
The getHingeAngle gives the hinge angle in range [-PI,PI]
|
double |
getHingeAngle(btTransform transA,
btTransform transB) |
void |
getInfo1(btTypedConstraint.btConstraintInfo1 info)
internal method used by the constraint solver, don't use them directly
|
void |
getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info) |
void |
getInfo2(btTypedConstraint.btConstraintInfo2 info)
internal method used by the constraint solver, don't use them directly
|
void |
getInfo2Internal(btTypedConstraint.btConstraintInfo2 info,
btTransform transA,
btTransform transB,
btVector3 angVelA,
btVector3 angVelB) |
void |
getInfo2InternalUsingFrameOffset(btTypedConstraint.btConstraintInfo2 info,
btTransform transA,
btTransform transB,
btVector3 angVelA,
btVector3 angVelB) |
void |
getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info,
btTransform transA,
btTransform transB,
btVector3 angVelA,
btVector3 angVelB) |
double |
getLimitBiasFactor() |
double |
getLimitRelaxationFactor() |
double |
getLimitSign() |
double |
getLimitSoftness() |
double |
getLowerLimit() |
double |
getMaxMotorImpulse() |
double |
getMotorTargetVelocity() |
double |
getParam(int num) |
double |
getParam(int num,
int axis)
return the local value of parameter
|
btRigidBody |
getRigidBodyA() |
btRigidBody |
getRigidBodyB() |
int |
getSolveLimit() |
double |
getUpperLimit() |
boolean |
getUseFrameOffset() |
boolean |
getUseReferenceFrameA() |
boolean |
hasLimit() |
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
void |
setAngularOnly(boolean angularOnly) |
void |
setAxis(btVector3 axisInA) |
void |
setFrames(btTransform frameA,
btTransform frameB) |
void |
setLimit(double low,
double high) |
void |
setLimit(double low,
double high,
double _softness,
double _biasFactor,
double _relaxationFactor) |
void |
setMaxMotorImpulse(double maxMotorImpulse) |
void |
setMotorTarget(btQuaternion qAinB,
double dt) |
void |
setMotorTarget(double targetAngle,
double dt) |
void |
setMotorTargetVelocity(double motorTargetVelocity) |
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 |
setUseFrameOffset(boolean frameOffsetOnOff) |
void |
setUseReferenceFrameA(boolean useReferenceFrameA) |
void |
testLimit(btTransform transA,
btTransform transB) |
void |
updateRHS(double timeStep) |
enableFeedback, getAppliedImpulse, getBreakingImpulseThreshold, getConstraintType, getDbgDrawSize, getFixedBody, getJointFeedback, getOverrideNumSolverIterations, getUid, getUserConstraintId, getUserConstraintPtr, getUserConstraintType, internalGetAppliedImpulse, internalSetAppliedImpulse, isEnabled, needsFeedback, setBreakingImpulseThreshold, setDbgDrawSize, setEnabled, setJointFeedback, setOverrideNumSolverIterations, setupSolverConstraint, setUserConstraintId, setUserConstraintPtr, setUserConstraintType, solveConstraintObsolete
getObjectType, m_objectType, m_objectType
address, 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, zero
public btHingeConstraint(Pointer p)
Pointer(Pointer)
.public btHingeConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btVector3 pivotInA, @Const @ByRef btVector3 pivotInB, @Const @ByRef btVector3 axisInA, @Const @ByRef btVector3 axisInB, @Cast(value="bool") boolean useReferenceFrameA)
public btHingeConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btVector3 pivotInA, @Const @ByRef btVector3 pivotInB, @Const @ByRef btVector3 axisInA, @Const @ByRef btVector3 axisInB)
public btHingeConstraint(@ByRef btRigidBody rbA, @Const @ByRef btVector3 pivotInA, @Const @ByRef btVector3 axisInA, @Cast(value="bool") boolean useReferenceFrameA)
public btHingeConstraint(@ByRef btRigidBody rbA, @Const @ByRef btVector3 pivotInA, @Const @ByRef btVector3 axisInA)
public btHingeConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btTransform rbAFrame, @Const @ByRef btTransform rbBFrame, @Cast(value="bool") boolean useReferenceFrameA)
public btHingeConstraint(@ByRef btRigidBody rbA, @ByRef btRigidBody rbB, @Const @ByRef btTransform rbAFrame, @Const @ByRef btTransform rbBFrame)
public btHingeConstraint(@ByRef btRigidBody rbA, @Const @ByRef btTransform rbAFrame, @Cast(value="bool") boolean useReferenceFrameA)
public btHingeConstraint(@ByRef btRigidBody rbA, @Const @ByRef btTransform rbAFrame)
public void buildJacobian()
btTypedConstraint
buildJacobian
in class btTypedConstraint
public void getInfo1(btTypedConstraint.btConstraintInfo1 info)
btTypedConstraint
getInfo1
in class btTypedConstraint
public void getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info)
public void getInfo2(btTypedConstraint.btConstraintInfo2 info)
btTypedConstraint
getInfo2
in class btTypedConstraint
public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, @Const @ByRef btTransform transA, @Const @ByRef btTransform transB, @Const @ByRef btVector3 angVelA, @Const @ByRef btVector3 angVelB)
public void getInfo2Internal(btTypedConstraint.btConstraintInfo2 info, @Const @ByRef btTransform transA, @Const @ByRef btTransform transB, @Const @ByRef btVector3 angVelA, @Const @ByRef btVector3 angVelB)
public void getInfo2InternalUsingFrameOffset(btTypedConstraint.btConstraintInfo2 info, @Const @ByRef btTransform transA, @Const @ByRef btTransform transB, @Const @ByRef btVector3 angVelA, @Const @ByRef btVector3 angVelB)
@ByRef public btRigidBody getRigidBodyA()
getRigidBodyA
in class btTypedConstraint
@ByRef public btRigidBody getRigidBodyB()
getRigidBodyB
in class btTypedConstraint
@ByRef public btTransform getFrameOffsetA()
@ByRef public btTransform getFrameOffsetB()
public void setFrames(@Const @ByRef btTransform frameA, @Const @ByRef btTransform frameB)
public void enableAngularMotor(@Cast(value="bool") boolean enableMotor, @Cast(value="btScalar") double targetVelocity, @Cast(value="btScalar") double maxMotorImpulse)
public void setMotorTargetVelocity(@Cast(value="btScalar") double motorTargetVelocity)
public void setMotorTarget(@Const @ByRef btQuaternion qAinB, @Cast(value="btScalar") double dt)
public void setMotorTarget(@Cast(value="btScalar") double targetAngle, @Cast(value="btScalar") double dt)
public void setLimit(@Cast(value="btScalar") double low, @Cast(value="btScalar") double high, @Cast(value="btScalar") double _softness, @Cast(value="btScalar") double _biasFactor, @Cast(value="btScalar") double _relaxationFactor)
public void setLimit(@Cast(value="btScalar") double low, @Cast(value="btScalar") double high)
@Cast(value="btScalar") public double getHingeAngle()
@Cast(value="btScalar") public double getHingeAngle(@Const @ByRef btTransform transA, @Const @ByRef btTransform transB)
public void testLimit(@Const @ByRef btTransform transA, @Const @ByRef btTransform transB)
@ByRef public btTransform getAFrame()
@ByRef public btTransform getBFrame()
public int getSolveLimit()
public void setUseReferenceFrameA(@Cast(value="bool") boolean useReferenceFrameA)
public void setParam(int num, @Cast(value="btScalar") double value, int axis)
setParam
in class btTypedConstraint
public 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 btTypedConstraint
public int getFlags()
public int calculateSerializeBufferSize()
calculateSerializeBufferSize
in class btTypedConstraint
@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
serialize
in class btTypedConstraint
Copyright © 2024. All rights reserved.