@NoOffset @Properties(inherit=liquidfun.class) public class b2Joint extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2Joint(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Dump()
Dump this joint to the log file.
|
b2Vec2 |
GetAnchorA()
Get the anchor point on bodyA in world coordinates.
|
b2Vec2 |
GetAnchorB()
Get the anchor point on bodyB in world coordinates.
|
b2Body |
GetBodyA()
Get the first body attached to this joint.
|
b2Body |
GetBodyB()
Get the second body attached to this joint.
|
boolean |
GetCollideConnected()
Get collide connected.
|
b2Joint |
GetNext()
Get the next joint the world joint list.
|
b2Vec2 |
GetReactionForce(float inv_dt)
Get the reaction force on bodyB at the joint anchor in Newtons.
|
float |
GetReactionTorque(float inv_dt)
Get the reaction torque on bodyB in N*m.
|
int |
GetType()
Get the type of the concrete joint.
|
Pointer |
GetUserData()
Get the user data pointer.
|
boolean |
IsActive()
Short-cut function to determine if either body is inactive.
|
void |
SetUserData(Pointer data)
Set the user data pointer.
|
void |
ShiftOrigin(b2Vec2 newOrigin)
Shift the origin for any points stored in world coordinates.
|
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 b2Joint(Pointer p)
Pointer(Pointer)
.public b2Body GetBodyA()
public b2Body GetBodyB()
@ByVal public b2Vec2 GetReactionForce(@Cast(value="float32") float inv_dt)
@Cast(value="float32") public float GetReactionTorque(@Cast(value="float32") float inv_dt)
public b2Joint GetNext()
public Pointer GetUserData()
public void SetUserData(Pointer data)
@Cast(value="bool") public boolean IsActive()
@Cast(value="bool") public boolean GetCollideConnected()
public void Dump()
Copyright © 2022. All rights reserved.