@NoOffset @Properties(inherit=liquidfun.class) public class b2WheelJointDef extends b2JointDef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
b2WheelJointDef() |
b2WheelJointDef(long size)
Native array allocator.
|
b2WheelJointDef(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
dampingRatio()
Suspension damping ratio, one indicates critical damping
|
b2WheelJointDef |
dampingRatio(float setter) |
boolean |
enableMotor()
Enable/disable the joint motor.
|
b2WheelJointDef |
enableMotor(boolean setter) |
float |
frequencyHz()
Suspension frequency, zero indicates no suspension
|
b2WheelJointDef |
frequencyHz(float setter) |
void |
Initialize(b2Body bodyA,
b2Body bodyB,
b2Vec2 anchor,
b2Vec2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world
anchor and world axis.
|
b2Vec2 |
localAnchorA()
The local anchor point relative to bodyA's origin.
|
b2WheelJointDef |
localAnchorA(b2Vec2 setter) |
b2Vec2 |
localAnchorB()
The local anchor point relative to bodyB's origin.
|
b2WheelJointDef |
localAnchorB(b2Vec2 setter) |
b2Vec2 |
localAxisA()
The local translation axis in bodyA.
|
b2WheelJointDef |
localAxisA(b2Vec2 setter) |
float |
maxMotorTorque()
The maximum motor torque, usually in N-m.
|
b2WheelJointDef |
maxMotorTorque(float setter) |
float |
motorSpeed()
The desired motor speed in radians per second.
|
b2WheelJointDef |
motorSpeed(float setter) |
b2WheelJointDef |
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, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic b2WheelJointDef(Pointer p)
Pointer.Pointer(Pointer).public b2WheelJointDef(long size)
Pointer.position(long).public b2WheelJointDef()
public b2WheelJointDef position(long position)
position in class b2JointDefpublic void Initialize(b2Body bodyA, b2Body bodyB, @Const @ByRef b2Vec2 anchor, @Const @ByRef b2Vec2 axis)
public b2WheelJointDef localAnchorA(b2Vec2 setter)
public b2WheelJointDef localAnchorB(b2Vec2 setter)
public b2WheelJointDef localAxisA(b2Vec2 setter)
public b2WheelJointDef enableMotor(boolean setter)
@Cast(value="float32") public float maxMotorTorque()
public b2WheelJointDef maxMotorTorque(float setter)
@Cast(value="float32") public float motorSpeed()
public b2WheelJointDef motorSpeed(float setter)
@Cast(value="float32") public float frequencyHz()
public b2WheelJointDef frequencyHz(float setter)
@Cast(value="float32") public float dampingRatio()
public b2WheelJointDef dampingRatio(float setter)
Copyright © 2019. All rights reserved.