@NoOffset @Properties(inherit=Bullet3Dynamics.class) public class b3TypedConstraint extends b3TypedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
b3TypedConstraint.b3ConstraintInfo1 |
static class |
b3TypedConstraint.b3ConstraintInfo2 |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b3TypedConstraint(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableFeedback(boolean needsFeedback)
enableFeedback will allow to read the applied linear and angular impulse
use getAppliedImpulse, getAppliedLinearImpulse and getAppliedAngularImpulse to read feedback information
|
float |
getAppliedImpulse()
getAppliedImpulse is an estimated total applied impulse.
|
float |
getBreakingImpulseThreshold() |
int |
getConstraintType() |
float |
getDbgDrawSize() |
void |
getInfo1(b3TypedConstraint.b3ConstraintInfo1 info,
b3RigidBodyData bodies)
internal method used by the constraint solver, don't use them directly
|
void |
getInfo2(b3TypedConstraint.b3ConstraintInfo2 info,
b3RigidBodyData bodies)
internal method used by the constraint solver, don't use them directly
|
b3JointFeedback |
getJointFeedback() |
int |
getOverrideNumSolverIterations() |
float |
getParam(int num) |
float |
getParam(int num,
int axis)
return the local value of parameter
|
int |
getRigidBodyA() |
int |
getRigidBodyB() |
int |
getUid() |
int |
getUserConstraintId() |
Pointer |
getUserConstraintPtr() |
int |
getUserConstraintType() |
float |
internalGetAppliedImpulse()
internal method used by the constraint solver, don't use them directly
|
void |
internalSetAppliedImpulse(float appliedImpulse)
internal method used by the constraint solver, don't use them directly
|
boolean |
isEnabled() |
boolean |
needsFeedback() |
void |
setBreakingImpulseThreshold(float threshold) |
void |
setDbgDrawSize(float dbgDrawSize) |
void |
setEnabled(boolean enabled) |
void |
setJointFeedback(b3JointFeedback 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,
float value) |
void |
setParam(int num,
float value,
int axis)
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5).
|
void |
setupSolverConstraint(b3TypedConstraintArray ca,
int solverBodyA,
int solverBodyB,
float 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(b3SolverBody arg0,
b3SolverBody arg1,
float 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 b3TypedConstraint(Pointer p)
Pointer(Pointer).public int getOverrideNumSolverIterations()
public void setOverrideNumSolverIterations(int overideNumIterations)
public void setupSolverConstraint(@Cast(value="b3ConstraintArray*") @ByRef b3TypedConstraintArray ca, int solverBodyA, int solverBodyB, @Cast(value="b3Scalar") float timeStep)
public void getInfo1(b3TypedConstraint.b3ConstraintInfo1 info, @Const b3RigidBodyData bodies)
public void getInfo2(b3TypedConstraint.b3ConstraintInfo2 info, @Const b3RigidBodyData bodies)
public void internalSetAppliedImpulse(@Cast(value="b3Scalar") float appliedImpulse)
@Cast(value="b3Scalar") public float internalGetAppliedImpulse()
public void setBreakingImpulseThreshold(@Cast(value="b3Scalar") float threshold)
public void solveConstraintObsolete(@ByRef b3SolverBody arg0, @ByRef b3SolverBody arg1, @Cast(value="b3Scalar") float arg2)
public int getRigidBodyA()
public int 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(b3JointFeedback jointFeedback)
public b3JointFeedback getJointFeedback()
public int getUid()
public void enableFeedback(@Cast(value="bool") boolean needsFeedback)
@Cast(value="b3Scalar") public float getAppliedImpulse()
public void setParam(int num,
@Cast(value="b3Scalar")
float value,
int axis)
@Cast(value="b3Scalar") public float getParam(int num, int axis)
Copyright © 2024. All rights reserved.