@NoOffset @Properties(inherit=Bullet3Dynamics.class) public class b3AngularLimit extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b3AngularLimit()
Default constructor initializes limit as inactive, allowing free constraint movement
|
b3AngularLimit(long size)
Native array allocator.
|
b3AngularLimit(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fit(float[] angle) |
void |
fit(FloatBuffer angle) |
void |
fit(FloatPointer angle)
Checks given angle against limit.
|
float |
getBiasFactor()
Returns limit's bias factor
|
float |
getCorrection()
Returns correction value evaluated when test() was invoked
|
float |
getError()
Returns correction value multiplied by sign value
|
float |
getHalfRange()
Gives half of the distance between min and max limit angle
|
float |
getHigh() |
float |
getLow() |
b3AngularLimit |
getPointer(long i) |
float |
getRelaxationFactor()
Returns limit's relaxation factor
|
float |
getSign()
Returns sign value evaluated when test() was invoked
|
float |
getSoftness()
Returns limit's softness
|
boolean |
isLimit()
Returns true when the last test() invocation recognized limit violation
|
b3AngularLimit |
position(long position) |
void |
set(float low,
float high) |
void |
set(float low,
float high,
float _softness,
float _biasFactor,
float _relaxationFactor)
Sets all limit's parameters.
|
void |
test(float angle)
Checks conastaint angle against limit.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic b3AngularLimit(Pointer p)
Pointer(Pointer).public b3AngularLimit(long size)
Pointer.position(long).public b3AngularLimit()
public b3AngularLimit position(long position)
public b3AngularLimit getPointer(long i)
getPointer in class Pointerpublic void set(@Cast(value="b3Scalar") float low, @Cast(value="b3Scalar") float high, @Cast(value="b3Scalar") float _softness, @Cast(value="b3Scalar") float _biasFactor, @Cast(value="b3Scalar") float _relaxationFactor)
public void test(@Cast(value="const b3Scalar") float angle)
@Cast(value="b3Scalar") public float getRelaxationFactor()
@Cast(value="b3Scalar") public float getCorrection()
@Cast(value="b3Scalar") public float getSign()
@Cast(value="b3Scalar") public float getHalfRange()
@Cast(value="bool") public boolean isLimit()
public void fit(@Cast(value="b3Scalar*") @ByRef FloatPointer angle)
public void fit(@Cast(value="b3Scalar*") @ByRef FloatBuffer angle)
@Cast(value="b3Scalar") public float getError()
Copyright © 2024. All rights reserved.