@NoOffset @Properties(inherit=liquidfun.class) public class b2PrismaticJoint extends b2Joint
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2PrismaticJoint(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Dump()
Dump to b2Log
|
void |
EnableLimit(boolean flag)
Enable/disable the joint limit.
|
void |
EnableMotor(boolean flag)
Enable/disable the joint motor.
|
b2Vec2 |
GetAnchorA()
Get the anchor point on bodyA in world coordinates.
|
b2Vec2 |
GetAnchorB()
Get the anchor point on bodyB in world coordinates.
|
float |
GetJointSpeed()
Get the current joint translation speed, usually in meters per second.
|
float |
GetJointTranslation()
Get the current joint translation, usually in meters.
|
b2Vec2 |
GetLocalAnchorA()
The local anchor point relative to bodyA's origin.
|
b2Vec2 |
GetLocalAnchorB()
The local anchor point relative to bodyB's origin.
|
b2Vec2 |
GetLocalAxisA()
The local joint axis relative to bodyA.
|
float |
GetLowerLimit()
Get the lower joint limit, usually in meters.
|
float |
GetMaxMotorForce() |
float |
GetMotorForce(float inv_dt)
Get the current motor force given the inverse time step, usually in N.
|
float |
GetMotorSpeed()
Get the motor speed, usually in meters per second.
|
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.
|
float |
GetReferenceAngle()
Get the reference angle.
|
float |
GetUpperLimit()
Get the upper joint limit, usually in meters.
|
boolean |
IsLimitEnabled()
Is the joint limit enabled?
|
boolean |
IsMotorEnabled()
Is the joint motor enabled?
|
void |
SetLimits(float lower,
float upper)
Set the joint limits, usually in meters.
|
void |
SetMaxMotorForce(float force)
Set the maximum motor force, usually in N.
|
void |
SetMotorSpeed(float speed)
Set the motor speed, usually in meters per second.
|
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 b2PrismaticJoint(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)
b2Joint
GetReactionForce
in class b2Joint
@Cast(value="float32") public float GetReactionTorque(@Cast(value="float32") float inv_dt)
b2Joint
GetReactionTorque
in class b2Joint
@Const @ByRef public b2Vec2 GetLocalAnchorA()
@Const @ByRef public b2Vec2 GetLocalAnchorB()
@Cast(value="float32") public float GetJointTranslation()
@Cast(value="float32") public float GetJointSpeed()
public void EnableLimit(@Cast(value="bool") boolean flag)
@Cast(value="float32") public float GetLowerLimit()
@Cast(value="float32") public float GetUpperLimit()
public void SetLimits(@Cast(value="float32") float lower, @Cast(value="float32") float upper)
public void EnableMotor(@Cast(value="bool") boolean flag)
public void SetMotorSpeed(@Cast(value="float32") float speed)
@Cast(value="float32") public float GetMotorSpeed()
public void SetMaxMotorForce(@Cast(value="float32") float force)
@Cast(value="float32") public float GetMotorForce(@Cast(value="float32") float inv_dt)
Copyright © 2022. All rights reserved.