@NoOffset @Properties(inherit=liquidfun.class) public class b2PulleyJointDef extends b2JointDef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2PulleyJointDef() |
b2PulleyJointDef(long size)
Native array allocator.
|
b2PulleyJointDef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
b2PulleyJointDef |
getPointer(long i) |
b2Vec2 |
groundAnchorA()
The first ground anchor in world coordinates.
|
b2PulleyJointDef |
groundAnchorA(b2Vec2 setter) |
b2Vec2 |
groundAnchorB()
The second ground anchor in world coordinates.
|
b2PulleyJointDef |
groundAnchorB(b2Vec2 setter) |
void |
Initialize(b2Body bodyA,
b2Body bodyB,
b2Vec2 groundAnchorA,
b2Vec2 groundAnchorB,
b2Vec2 anchorA,
b2Vec2 anchorB,
float ratio)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
|
float |
lengthA()
The a reference length for the segment attached to bodyA.
|
b2PulleyJointDef |
lengthA(float setter) |
float |
lengthB()
The a reference length for the segment attached to bodyB.
|
b2PulleyJointDef |
lengthB(float setter) |
b2Vec2 |
localAnchorA()
The local anchor point relative to bodyA's origin.
|
b2PulleyJointDef |
localAnchorA(b2Vec2 setter) |
b2Vec2 |
localAnchorB()
The local anchor point relative to bodyB's origin.
|
b2PulleyJointDef |
localAnchorB(b2Vec2 setter) |
b2PulleyJointDef |
position(long position) |
float |
ratio()
The pulley ratio, used to simulate a block-and-tackle.
|
b2PulleyJointDef |
ratio(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 b2PulleyJointDef(Pointer p)
Pointer(Pointer)
.public b2PulleyJointDef(long size)
Pointer.position(long)
.public b2PulleyJointDef()
public b2PulleyJointDef position(long position)
position
in class b2JointDef
public b2PulleyJointDef getPointer(long i)
getPointer
in class b2JointDef
public void Initialize(b2Body bodyA, b2Body bodyB, @Const @ByRef b2Vec2 groundAnchorA, @Const @ByRef b2Vec2 groundAnchorB, @Const @ByRef b2Vec2 anchorA, @Const @ByRef b2Vec2 anchorB, @Cast(value="float32") float ratio)
@ByRef public b2Vec2 groundAnchorA()
public b2PulleyJointDef groundAnchorA(b2Vec2 setter)
@ByRef public b2Vec2 groundAnchorB()
public b2PulleyJointDef groundAnchorB(b2Vec2 setter)
public b2PulleyJointDef localAnchorA(b2Vec2 setter)
public b2PulleyJointDef localAnchorB(b2Vec2 setter)
@Cast(value="float32") public float lengthA()
public b2PulleyJointDef lengthA(float setter)
@Cast(value="float32") public float lengthB()
public b2PulleyJointDef lengthB(float setter)
@Cast(value="float32") public float ratio()
public b2PulleyJointDef ratio(float setter)
Copyright © 2022. All rights reserved.