@NoOffset @Properties(inherit=liquidfun.class) public class b2DistanceJointDef extends b2JointDef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b2DistanceJointDef() |
b2DistanceJointDef(long size)
Native array allocator.
|
b2DistanceJointDef(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
dampingRatio()
The damping ratio.
|
b2DistanceJointDef |
dampingRatio(float setter) |
float |
frequencyHz()
The mass-spring-damper frequency in Hertz.
|
b2DistanceJointDef |
frequencyHz(float setter) |
void |
Initialize(b2Body bodyA,
b2Body bodyB,
b2Vec2 anchorA,
b2Vec2 anchorB)
Initialize the bodies, anchors, and length using the world
anchors.
|
float |
length()
The natural length between the anchor points.
|
b2DistanceJointDef |
length(float setter) |
b2Vec2 |
localAnchorA()
The local anchor point relative to bodyA's origin.
|
b2DistanceJointDef |
localAnchorA(b2Vec2 setter) |
b2Vec2 |
localAnchorB()
The local anchor point relative to bodyB's origin.
|
b2DistanceJointDef |
localAnchorB(b2Vec2 setter) |
b2DistanceJointDef |
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, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic b2DistanceJointDef(Pointer p)
Pointer.Pointer(Pointer).public b2DistanceJointDef(long size)
Pointer.position(long).public b2DistanceJointDef()
public b2DistanceJointDef position(long position)
position in class b2JointDefpublic void Initialize(b2Body bodyA, b2Body bodyB, @Const @ByRef b2Vec2 anchorA, @Const @ByRef b2Vec2 anchorB)
public b2DistanceJointDef localAnchorA(b2Vec2 setter)
public b2DistanceJointDef localAnchorB(b2Vec2 setter)
public b2DistanceJointDef length(float setter)
@Cast(value="float32") public float frequencyHz()
public b2DistanceJointDef frequencyHz(float setter)
@Cast(value="float32") public float dampingRatio()
public b2DistanceJointDef dampingRatio(float setter)
Copyright © 2019. All rights reserved.