@NoOffset @Properties(inherit=liquidfun.class) public class b2RevoluteJointDef extends b2JointDef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2RevoluteJointDef() |
b2RevoluteJointDef(long size)
Native array allocator.
|
b2RevoluteJointDef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enableLimit()
A flag to enable joint limits.
|
b2RevoluteJointDef |
enableLimit(boolean setter) |
boolean |
enableMotor()
A flag to enable the joint motor.
|
b2RevoluteJointDef |
enableMotor(boolean setter) |
b2RevoluteJointDef |
getPointer(long i) |
void |
Initialize(b2Body bodyA,
b2Body bodyB,
b2Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world
anchor point.
|
b2Vec2 |
localAnchorA()
The local anchor point relative to bodyA's origin.
|
b2RevoluteJointDef |
localAnchorA(b2Vec2 setter) |
b2Vec2 |
localAnchorB()
The local anchor point relative to bodyB's origin.
|
b2RevoluteJointDef |
localAnchorB(b2Vec2 setter) |
float |
lowerAngle()
The lower angle for the joint limit (radians).
|
b2RevoluteJointDef |
lowerAngle(float setter) |
float |
maxMotorTorque()
The maximum motor torque used to achieve the desired motor speed.
|
b2RevoluteJointDef |
maxMotorTorque(float setter) |
float |
motorSpeed()
The desired motor speed.
|
b2RevoluteJointDef |
motorSpeed(float setter) |
b2RevoluteJointDef |
position(long position) |
float |
referenceAngle()
The bodyB angle minus bodyA angle in the reference state (radians).
|
b2RevoluteJointDef |
referenceAngle(float setter) |
float |
upperAngle()
The upper angle for the joint limit (radians).
|
b2RevoluteJointDef |
upperAngle(float setter) |
bodyA, bodyA, bodyB, bodyB, collideConnected, collideConnected, type, type, userData, userData
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public b2RevoluteJointDef(Pointer p)
Pointer(Pointer)
.public b2RevoluteJointDef(long size)
Pointer.position(long)
.public b2RevoluteJointDef()
public b2RevoluteJointDef position(long position)
position
in class b2JointDef
public b2RevoluteJointDef getPointer(long i)
getPointer
in class b2JointDef
public void Initialize(b2Body bodyA, b2Body bodyB, @Const @ByRef b2Vec2 anchor)
public b2RevoluteJointDef localAnchorA(b2Vec2 setter)
public b2RevoluteJointDef localAnchorB(b2Vec2 setter)
@Cast(value="float32") public float referenceAngle()
public b2RevoluteJointDef referenceAngle(float setter)
public b2RevoluteJointDef enableLimit(boolean setter)
@Cast(value="float32") public float lowerAngle()
public b2RevoluteJointDef lowerAngle(float setter)
@Cast(value="float32") public float upperAngle()
public b2RevoluteJointDef upperAngle(float setter)
public b2RevoluteJointDef enableMotor(boolean setter)
@Cast(value="float32") public float motorSpeed()
public b2RevoluteJointDef motorSpeed(float setter)
@Cast(value="float32") public float maxMotorTorque()
public b2RevoluteJointDef maxMotorTorque(float setter)
Copyright © 2022. All rights reserved.