@NoOffset @Properties(inherit=BulletDynamics.class) public class btTypedConstraint extends btTypedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
btTypedConstraint.btConstraintInfo1 |
static class |
btTypedConstraint.btConstraintInfo2 |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btTypedConstraint(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 |
enableFeedback(boolean needsFeedback)
enableFeedback will allow to read the applied linear and angular impulse
use getAppliedImpulse, getAppliedLinearImpulse and getAppliedAngularImpulse to read feedback information
|
double |
getAppliedImpulse()
getAppliedImpulse is an estimated total applied impulse.
|
double |
getBreakingImpulseThreshold() |
int |
getConstraintType() |
double |
getDbgDrawSize() |
static btRigidBody |
getFixedBody() |
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
|
btJointFeedback |
getJointFeedback() |
int |
getOverrideNumSolverIterations() |
double |
getParam(int num) |
double |
getParam(int num,
int axis)
return the local value of parameter
|
btRigidBody |
getRigidBodyA() |
btRigidBody |
getRigidBodyB() |
int |
getUid() |
int |
getUserConstraintId() |
Pointer |
getUserConstraintPtr() |
int |
getUserConstraintType() |
double |
internalGetAppliedImpulse()
internal method used by the constraint solver, don't use them directly
|
void |
internalSetAppliedImpulse(double appliedImpulse)
internal method used by the constraint solver, don't use them directly
|
boolean |
isEnabled() |
boolean |
needsFeedback() |
BytePointer |
serialize(Pointer dataBuffer,
btSerializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
void |
setBreakingImpulseThreshold(double threshold) |
void |
setDbgDrawSize(double dbgDrawSize) |
void |
setEnabled(boolean enabled) |
void |
setJointFeedback(btJointFeedback jointFeedback) |
void |
setOverrideNumSolverIterations(int overideNumIterations)
override the number of constraint solver iterations used to solve this constraint
-1 will use the default number of iterations, as specified in SolverInfo.m_numIterations
|
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 |
setupSolverConstraint(btSolverConstraintArray ca,
int solverBodyA,
int solverBodyB,
double timeStep)
internal method used by the constraint solver, don't use them directly
|
void |
setUserConstraintId(int uid) |
void |
setUserConstraintPtr(Pointer ptr) |
void |
setUserConstraintType(int userConstraintType) |
void |
solveConstraintObsolete(btSolverBody arg0,
btSolverBody arg1,
double arg2)
internal method used by the constraint solver, don't use them directly
|
getObjectType, 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 btTypedConstraint(Pointer p)
Pointer(Pointer).@ByRef public static btRigidBody getFixedBody()
public int getOverrideNumSolverIterations()
public void setOverrideNumSolverIterations(int overideNumIterations)
public void buildJacobian()
public void setupSolverConstraint(@ByRef btSolverConstraintArray ca, int solverBodyA, int solverBodyB, @Cast(value="btScalar") double timeStep)
public void getInfo1(btTypedConstraint.btConstraintInfo1 info)
public void getInfo2(btTypedConstraint.btConstraintInfo2 info)
public void internalSetAppliedImpulse(@Cast(value="btScalar") double appliedImpulse)
@Cast(value="btScalar") public double internalGetAppliedImpulse()
public void setBreakingImpulseThreshold(@Cast(value="btScalar") double threshold)
public void solveConstraintObsolete(@ByRef btSolverBody arg0, @ByRef btSolverBody arg1, @Cast(value="btScalar") double arg2)
@ByRef public btRigidBody getRigidBodyA()
@ByRef public btRigidBody getRigidBodyB()
public int getUserConstraintType()
public void setUserConstraintType(int userConstraintType)
public void setUserConstraintId(int uid)
public int getUserConstraintId()
public void setUserConstraintPtr(Pointer ptr)
public Pointer getUserConstraintPtr()
public void setJointFeedback(btJointFeedback jointFeedback)
public btJointFeedback getJointFeedback()
public int getUid()
public void enableFeedback(@Cast(value="bool") boolean needsFeedback)
@Cast(value="btScalar") public double getAppliedImpulse()
public void setParam(int num,
@Cast(value="btScalar")
double value,
int axis)
@Cast(value="btScalar") public double getParam(int num, int axis)
public int calculateSerializeBufferSize()
@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, btSerializer serializer)
Copyright © 2024. All rights reserved.