@NoOffset @Properties(inherit=liquidfun.class) public class b2MotorJointDef extends b2JointDef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b2MotorJointDef() |
b2MotorJointDef(long size)
Native array allocator.
|
b2MotorJointDef(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
angularOffset()
The bodyB angle minus bodyA angle in radians.
|
b2MotorJointDef |
angularOffset(float setter) |
float |
correctionFactor()
Position correction factor in the range [0,1].
|
b2MotorJointDef |
correctionFactor(float setter) |
b2MotorJointDef |
getPointer(long i) |
void |
Initialize(b2Body bodyA,
b2Body bodyB)
Initialize the bodies and offsets using the current transforms.
|
b2Vec2 |
linearOffset()
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
|
b2MotorJointDef |
linearOffset(b2Vec2 setter) |
float |
maxForce()
The maximum motor force in N.
|
b2MotorJointDef |
maxForce(float setter) |
float |
maxTorque()
The maximum motor torque in N-m.
|
b2MotorJointDef |
maxTorque(float setter) |
b2MotorJointDef |
position(long position) |
bodyA, bodyA, bodyB, bodyB, collideConnected, collideConnected, type, type, userData, userDataaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic b2MotorJointDef(Pointer p)
Pointer(Pointer).public b2MotorJointDef(long size)
Pointer.position(long).public b2MotorJointDef()
public b2MotorJointDef position(long position)
position in class b2JointDefpublic b2MotorJointDef getPointer(long i)
getPointer in class b2JointDefpublic void Initialize(b2Body bodyA, b2Body bodyB)
@ByRef public b2Vec2 linearOffset()
public b2MotorJointDef linearOffset(b2Vec2 setter)
@Cast(value="float32") public float angularOffset()
public b2MotorJointDef angularOffset(float setter)
public b2MotorJointDef maxForce(float setter)
public b2MotorJointDef maxTorque(float setter)
@Cast(value="float32") public float correctionFactor()
public b2MotorJointDef correctionFactor(float setter)
Copyright © 2022. All rights reserved.