@NoOffset @Properties(inherit=liquidfun.class) public class b2PrismaticJointDef extends b2JointDef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b2PrismaticJointDef() |
b2PrismaticJointDef(long size)
Native array allocator.
|
b2PrismaticJointDef(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableLimit()
Enable/disable the joint limit.
|
b2PrismaticJointDef |
enableLimit(boolean setter) |
boolean |
enableMotor()
Enable/disable the joint motor.
|
b2PrismaticJointDef |
enableMotor(boolean setter) |
b2PrismaticJointDef |
getPointer(long i) |
void |
Initialize(b2Body bodyA,
b2Body bodyB,
b2Vec2 anchor,
b2Vec2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world
anchor and unit world axis.
|
b2Vec2 |
localAnchorA()
The local anchor point relative to bodyA's origin.
|
b2PrismaticJointDef |
localAnchorA(b2Vec2 setter) |
b2Vec2 |
localAnchorB()
The local anchor point relative to bodyB's origin.
|
b2PrismaticJointDef |
localAnchorB(b2Vec2 setter) |
b2Vec2 |
localAxisA()
The local translation unit axis in bodyA.
|
b2PrismaticJointDef |
localAxisA(b2Vec2 setter) |
float |
lowerTranslation()
The lower translation limit, usually in meters.
|
b2PrismaticJointDef |
lowerTranslation(float setter) |
float |
maxMotorForce()
The maximum motor torque, usually in N-m.
|
b2PrismaticJointDef |
maxMotorForce(float setter) |
float |
motorSpeed()
The desired motor speed in radians per second.
|
b2PrismaticJointDef |
motorSpeed(float setter) |
b2PrismaticJointDef |
position(long position) |
float |
referenceAngle()
The constrained angle between the bodies: bodyB_angle - bodyA_angle.
|
b2PrismaticJointDef |
referenceAngle(float setter) |
float |
upperTranslation()
The upper translation limit, usually in meters.
|
b2PrismaticJointDef |
upperTranslation(float setter) |
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, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic b2PrismaticJointDef(Pointer p)
Pointer(Pointer).public b2PrismaticJointDef(long size)
Pointer.position(long).public b2PrismaticJointDef()
public b2PrismaticJointDef position(long position)
position in class b2JointDefpublic b2PrismaticJointDef getPointer(long i)
getPointer in class b2JointDefpublic void Initialize(b2Body bodyA, b2Body bodyB, @Const @ByRef b2Vec2 anchor, @Const @ByRef b2Vec2 axis)
public b2PrismaticJointDef localAnchorA(b2Vec2 setter)
public b2PrismaticJointDef localAnchorB(b2Vec2 setter)
public b2PrismaticJointDef localAxisA(b2Vec2 setter)
@Cast(value="float32") public float referenceAngle()
public b2PrismaticJointDef referenceAngle(float setter)
public b2PrismaticJointDef enableLimit(boolean setter)
@Cast(value="float32") public float lowerTranslation()
public b2PrismaticJointDef lowerTranslation(float setter)
@Cast(value="float32") public float upperTranslation()
public b2PrismaticJointDef upperTranslation(float setter)
public b2PrismaticJointDef enableMotor(boolean setter)
@Cast(value="float32") public float maxMotorForce()
public b2PrismaticJointDef maxMotorForce(float setter)
@Cast(value="float32") public float motorSpeed()
public b2PrismaticJointDef motorSpeed(float setter)
Copyright © 2021. All rights reserved.