@NoOffset @Properties(inherit=liquidfun.class) public class b2MotorJoint extends b2Joint
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b2MotorJoint(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Dump()
Dump to b2Log
|
b2Vec2 |
GetAnchorA()
Get the anchor point on bodyA in world coordinates.
|
b2Vec2 |
GetAnchorB()
Get the anchor point on bodyB in world coordinates.
|
float |
GetAngularOffset() |
float |
GetCorrectionFactor()
Get the position correction factor in the range [0,1].
|
b2Vec2 |
GetLinearOffset() |
float |
GetMaxForce()
Get the maximum friction force in N.
|
float |
GetMaxTorque()
Get the maximum friction torque in N*m.
|
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.
|
void |
SetAngularOffset(float angularOffset)
Set/get the target angular offset, in radians.
|
void |
SetCorrectionFactor(float factor)
Set the position correction factor in the range [0,1].
|
void |
SetLinearOffset(b2Vec2 linearOffset)
Set/get the target linear offset, in frame A, in meters.
|
void |
SetMaxForce(float force)
Set the maximum friction force in N.
|
void |
SetMaxTorque(float torque)
Set the maximum friction torque in N*m.
|
GetBodyA, GetBodyB, GetCollideConnected, GetNext, GetType, GetUserData, IsActive, SetUserData, ShiftOriginaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic b2MotorJoint(Pointer p)
Pointer(Pointer).@ByVal public b2Vec2 GetAnchorA()
b2JointGetAnchorA in class b2Joint@ByVal public b2Vec2 GetAnchorB()
b2JointGetAnchorB in class b2Joint@ByVal public b2Vec2 GetReactionForce(@Cast(value="float32") float inv_dt)
b2JointGetReactionForce in class b2Joint@Cast(value="float32") public float GetReactionTorque(@Cast(value="float32") float inv_dt)
b2JointGetReactionTorque in class b2Jointpublic void SetLinearOffset(@Const @ByRef b2Vec2 linearOffset)
public void SetAngularOffset(@Cast(value="float32") float angularOffset)
public void SetMaxForce(@Cast(value="float32") float force)
public void SetMaxTorque(@Cast(value="float32") float torque)
@Cast(value="float32") public float GetMaxTorque()
public void SetCorrectionFactor(@Cast(value="float32") float factor)
@Cast(value="float32") public float GetCorrectionFactor()
Copyright © 2021. All rights reserved.