@NoOffset @Properties(inherit=liquidfun.class) public class b2DistanceJoint extends b2Joint
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2DistanceJoint(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Dump()
Dump joint to dmLog
|
b2Vec2 |
GetAnchorA()
Get the anchor point on bodyA in world coordinates.
|
b2Vec2 |
GetAnchorB()
Get the anchor point on bodyB in world coordinates.
|
float |
GetDampingRatio() |
float |
GetFrequency() |
float |
GetLength() |
b2Vec2 |
GetLocalAnchorA()
The local anchor point relative to bodyA's origin.
|
b2Vec2 |
GetLocalAnchorB()
The local anchor point relative to bodyB's origin.
|
b2Vec2 |
GetReactionForce(float inv_dt)
Get the reaction force given the inverse time step.
|
float |
GetReactionTorque(float inv_dt)
Get the reaction torque given the inverse time step.
|
void |
SetDampingRatio(float ratio)
Set/get damping ratio.
|
void |
SetFrequency(float hz)
Set/get frequency in Hz.
|
void |
SetLength(float length)
Set/get the natural length.
|
GetBodyA, GetBodyB, GetCollideConnected, GetNext, GetType, GetUserData, IsActive, SetUserData, ShiftOrigin
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 b2DistanceJoint(Pointer p)
Pointer(Pointer)
.@ByVal public b2Vec2 GetAnchorA()
b2Joint
GetAnchorA
in class b2Joint
@ByVal public b2Vec2 GetAnchorB()
b2Joint
GetAnchorB
in class b2Joint
@ByVal public b2Vec2 GetReactionForce(@Cast(value="float32") float inv_dt)
GetReactionForce
in class b2Joint
@Cast(value="float32") public float GetReactionTorque(@Cast(value="float32") float inv_dt)
GetReactionTorque
in class b2Joint
@Const @ByRef public b2Vec2 GetLocalAnchorA()
@Const @ByRef public b2Vec2 GetLocalAnchorB()
public void SetLength(@Cast(value="float32") float length)
public void SetDampingRatio(@Cast(value="float32") float ratio)
Copyright © 2022. All rights reserved.