@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) |
b2DistanceJointDef |
getPointer(long i) |
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, 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 b2DistanceJointDef(Pointer p)
Pointer(Pointer)
.public b2DistanceJointDef(long size)
Pointer.position(long)
.public b2DistanceJointDef()
public b2DistanceJointDef position(long position)
position
in class b2JointDef
public b2DistanceJointDef getPointer(long i)
getPointer
in class b2JointDef
public 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 © 2022. All rights reserved.