@NoOffset @Properties(inherit=liquidfun.class) public class b2ParticleGroupDef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2ParticleGroupDef() |
b2ParticleGroupDef(long size)
Native array allocator.
|
b2ParticleGroupDef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
b2Vec2 |
_position()
The world position of the group.
|
b2ParticleGroupDef |
_position(b2Vec2 setter) |
float |
angle()
The world angle of the group in radians.
|
b2ParticleGroupDef |
angle(float setter) |
float |
angularVelocity()
The angular velocity of the group.
|
b2ParticleGroupDef |
angularVelocity(float setter) |
b2CircleShape |
circleShapes()
Storage for constructed CircleShapes from an incoming vertex list
|
b2ParticleGroupDef |
circleShapes(b2CircleShape setter) |
b2ParticleColor |
color()
The color of all particles in the group.
|
b2ParticleGroupDef |
color(b2ParticleColor setter) |
long |
flags()
The particle-behavior flags (See #b2ParticleFlag).
|
b2ParticleGroupDef |
flags(long setter) |
void |
FreeShapesMemory()
Clean up all memory associated with SetCircleShapesFromVertexList
|
b2ParticleGroupDef |
getPointer(long i) |
b2ParticleGroup |
group()
An existing particle group to which the particles will be added.
|
b2ParticleGroupDef |
group(b2ParticleGroup setter) |
long |
groupFlags()
The group-construction flags (See #b2ParticleGroupFlag).
|
b2ParticleGroupDef |
groupFlags(long setter) |
float |
lifetime()
Lifetime of the particle group in seconds.
|
b2ParticleGroupDef |
lifetime(float setter) |
b2Vec2 |
linearVelocity()
The linear velocity of the group's origin in world co-ordinates.
|
b2ParticleGroupDef |
linearVelocity(b2Vec2 setter) |
boolean |
ownShapesArray()
True if we create the shapes array internally.
|
b2ParticleGroupDef |
ownShapesArray(boolean setter) |
int |
particleCount()
The number of particles in addition to ones added in the shape.
|
b2ParticleGroupDef |
particleCount(int setter) |
b2ParticleGroupDef |
position(long position) |
b2Vec2 |
positionData()
The initial positions of the particleCount particles.
|
b2ParticleGroupDef |
positionData(b2Vec2 positionData) |
void |
SetCircleShapesFromVertexList(Pointer inBuf,
int numShapes,
float radius)
From a vertex list created by an external language API, construct
a list of circle shapes that can be used to create a b2ParticleGroup
This eliminates cumbersome array-interfaces between languages.
|
void |
SetColor(int r,
int g,
int b,
int a)
Set color with direct ints.
|
void |
SetPosition(float x,
float y)
Set position with direct floats.
|
b2Shape |
shape()
The shape where particles will be added.
|
b2ParticleGroupDef |
shape(b2Shape shape) |
int |
shapeCount()
The number of shapes.
|
b2ParticleGroupDef |
shapeCount(int setter) |
PointerPointer |
shapes()
A array of shapes where particles will be added.
|
b2ParticleGroupDef |
shapes(PointerPointer shapes) |
float |
strength()
The strength of cohesion among the particles in a group with flag
b2_elasticParticle or b2_springParticle.
|
b2ParticleGroupDef |
strength(float setter) |
float |
stride()
The interval of particles in the shape.
|
b2ParticleGroupDef |
stride(float setter) |
Pointer |
userData()
Use this to store application-specific group data.
|
b2ParticleGroupDef |
userData(Pointer setter) |
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 b2ParticleGroupDef(Pointer p)
Pointer(Pointer)
.public b2ParticleGroupDef(long size)
Pointer.position(long)
.public b2ParticleGroupDef()
public b2ParticleGroupDef position(long position)
public b2ParticleGroupDef getPointer(long i)
getPointer
in class Pointer
public b2ParticleGroupDef flags(long setter)
@Cast(value="uint32") public long groupFlags()
public b2ParticleGroupDef groupFlags(long setter)
@ByRef @Name(value="position") public b2Vec2 _position()
public b2ParticleGroupDef _position(b2Vec2 setter)
@Cast(value="float32") public float angle()
public b2ParticleGroupDef angle(float setter)
@ByRef public b2Vec2 linearVelocity()
public b2ParticleGroupDef linearVelocity(b2Vec2 setter)
@Cast(value="float32") public float angularVelocity()
public b2ParticleGroupDef angularVelocity(float setter)
@ByRef public b2ParticleColor color()
public b2ParticleGroupDef color(b2ParticleColor setter)
@Cast(value="float32") public float strength()
public b2ParticleGroupDef strength(float setter)
@MemberGetter @Const public b2Shape shape()
@MemberSetter public b2ParticleGroupDef shape(@Const b2Shape shape)
@MemberGetter @Cast(value="const b2Shape*const*") public PointerPointer shapes()
@MemberSetter public b2ParticleGroupDef shapes(@Cast(value="const b2Shape*const*") PointerPointer shapes)
public b2ParticleGroupDef shapeCount(int setter)
@Cast(value="float32") public float stride()
public b2ParticleGroupDef stride(float setter)
@Cast(value="int32") public int particleCount()
public b2ParticleGroupDef particleCount(int setter)
@MemberGetter @Const public b2Vec2 positionData()
@MemberSetter public b2ParticleGroupDef positionData(@Const b2Vec2 positionData)
@Cast(value="float32") public float lifetime()
public b2ParticleGroupDef lifetime(float setter)
public Pointer userData()
public b2ParticleGroupDef userData(Pointer setter)
public b2ParticleGroup group()
public b2ParticleGroupDef group(b2ParticleGroup setter)
@Const public b2CircleShape circleShapes()
public b2ParticleGroupDef circleShapes(b2CircleShape setter)
@Cast(value="bool") public boolean ownShapesArray()
public b2ParticleGroupDef ownShapesArray(boolean setter)
public void FreeShapesMemory()
public void SetCircleShapesFromVertexList(Pointer inBuf, int numShapes, float radius)
public void SetPosition(@Cast(value="float32") float x, @Cast(value="float32") float y)
Copyright © 2022. All rights reserved.