@NoOffset @Properties(inherit=liquidfun.class) public class b2ParticleGroup extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2ParticleGroup(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ApplyForce(b2Vec2 force)
Call b2ParticleSystem::ApplyForce for every particle in the group.
|
void |
ApplyLinearImpulse(b2Vec2 impulse)
Call b2ParticleSystem::ApplyLinearImpulse for every particle in the
group.
|
boolean |
ContainsParticle(int index)
Does this group contain the particle.
|
void |
DestroyParticles()
Destroy all particles in this group without enabling the destruction
callback for destroyed particles.
|
void |
DestroyParticles(boolean callDestructionListener)
Destroy all the particles in this group.
|
long |
GetAllParticleFlags()
Get the logical sum of particle flags.
|
float |
GetAngle()
Get the rotational angle of the particle group as a whole.
|
float |
GetAngularVelocity()
Get the angular velocity of the group.
|
int |
GetBufferIndex()
Get the offset of this group in the global particle buffer
|
b2Vec2 |
GetCenter()
Get the center of gravity for the group.
|
long |
GetGroupFlags()
Get the construction flags for the group.
|
float |
GetInertia()
Get the moment of inertia for the group.
|
b2Vec2 |
GetLinearVelocity()
Get the linear velocity of the group.
|
b2Vec2 |
GetLinearVelocityFromWorldPoint(b2Vec2 worldPoint)
Get the world linear velocity of a world point, from the average linear
and angular velocities of the particle group.
|
float |
GetMass()
Get the total mass of the group: the sum of all particles in it.
|
b2ParticleGroup |
GetNext()
Get the next particle group from the list in b2_World.
|
int |
GetParticleCount()
Get the number of particles.
|
b2ParticleSystem |
GetParticleSystem()
Get the particle system that holds this particle group.
|
b2Vec2 |
GetPosition()
Get position of the particle group as a whole.
|
b2Transform |
GetTransform()
Get the position of the group's origin and rotation.
|
Pointer |
GetUserData()
Get the user data pointer that was provided in the group definition.
|
void |
SetGroupFlags(long flags)
Set the construction flags for the group.
|
void |
SetUserData(Pointer data)
Set the user data.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public b2ParticleGroup(Pointer p)
Pointer(Pointer)
.public b2ParticleGroup GetNext()
public b2ParticleSystem GetParticleSystem()
@Cast(value="int32") public int GetBufferIndex()
@Cast(value="bool") public boolean ContainsParticle(@Cast(value="int32") int index)
@Cast(value="uint32") public long GetAllParticleFlags()
@Cast(value="uint32") public long GetGroupFlags()
public void SetGroupFlags(@Cast(value="uint32") long flags)
@Cast(value="float32") public float GetMass()
@Cast(value="float32") public float GetInertia()
@Cast(value="float32") public float GetAngularVelocity()
@Const @ByRef public b2Transform GetTransform()
@Const @ByRef public b2Vec2 GetPosition()
@Cast(value="float32") public float GetAngle()
@ByVal public b2Vec2 GetLinearVelocityFromWorldPoint(@Const @ByRef b2Vec2 worldPoint)
a
- point in world coordinates.public Pointer GetUserData()
public void SetUserData(Pointer data)
public void ApplyForce(@Const @ByRef b2Vec2 force)
public void ApplyLinearImpulse(@Const @ByRef b2Vec2 impulse)
public void DestroyParticles(@Cast(value="bool") boolean callDestructionListener)
Whether
- to call the world b2DestructionListener for each
particle is destroyed.
\warning This function is locked during callbacks.public void DestroyParticles()
Copyright © 2022. All rights reserved.