@NoOffset @Properties(inherit=BulletDynamics.class) public class btAngularLimit extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btAngularLimit()
Default constructor initializes limit as inactive, allowing free constraint movement
|
btAngularLimit(long size)
Native array allocator.
|
btAngularLimit(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fit(double[] angle) |
void |
fit(DoubleBuffer angle) |
void |
fit(DoublePointer angle)
Checks given angle against limit.
|
double |
getBiasFactor()
Returns limit's bias factor
|
double |
getCorrection()
Returns correction value evaluated when test() was invoked
|
double |
getError()
Returns correction value multiplied by sign value
|
double |
getHalfRange()
Gives half of the distance between min and max limit angle
|
double |
getHigh() |
double |
getLow() |
btAngularLimit |
getPointer(long i) |
double |
getRelaxationFactor()
Returns limit's relaxation factor
|
double |
getSign()
Returns sign value evaluated when test() was invoked
|
double |
getSoftness()
Returns limit's softness
|
boolean |
isLimit()
Returns true when the last test() invocation recognized limit violation
|
btAngularLimit |
position(long position) |
void |
set(double low,
double high) |
void |
set(double low,
double high,
double _softness,
double _biasFactor,
double _relaxationFactor)
Sets all limit's parameters.
|
void |
test(double 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 btAngularLimit(Pointer p)
Pointer(Pointer).public btAngularLimit(long size)
Pointer.position(long).public btAngularLimit()
public btAngularLimit position(long position)
public btAngularLimit getPointer(long i)
getPointer in class Pointerpublic void set(@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 test(@Cast(value="const btScalar") double angle)
@Cast(value="btScalar") public double getRelaxationFactor()
@Cast(value="btScalar") public double getCorrection()
@Cast(value="btScalar") public double getSign()
@Cast(value="btScalar") public double getHalfRange()
@Cast(value="bool") public boolean isLimit()
public void fit(@Cast(value="btScalar*") @ByRef DoublePointer angle)
public void fit(@Cast(value="btScalar*") @ByRef DoubleBuffer angle)
@Cast(value="btScalar") public double getError()
Copyright © 2024. All rights reserved.