@NoOffset @Properties(inherit=liquidfun.class) public class b2ParticleSystemDef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2ParticleSystemDef() |
b2ParticleSystemDef(long size)
Native array allocator.
|
b2ParticleSystemDef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
colorMixingStrength()
Determines how fast colors are mixed
1.0f ==> mixed immediately
0.5f ==> mixed half way each simulation step (see b2World::Step())
|
b2ParticleSystemDef |
colorMixingStrength(float setter) |
float |
dampingStrength()
Reduces velocity along the collision normal
Smaller value reduces less
|
b2ParticleSystemDef |
dampingStrength(float setter) |
float |
density()
Set the particle density.
|
b2ParticleSystemDef |
density(float setter) |
boolean |
destroyByAge()
Whether to destroy particles by age when no more particles can be
created.
|
b2ParticleSystemDef |
destroyByAge(boolean setter) |
float |
ejectionStrength()
Pushes particles out of solid particle group
Larger values repulse more
|
b2ParticleSystemDef |
ejectionStrength(float setter) |
float |
elasticStrength()
Restores shape of elastic particle groups
Larger values increase elastic particle velocity
|
b2ParticleSystemDef |
elasticStrength(float setter) |
b2ParticleSystemDef |
getPointer(long i) |
float |
gravityScale()
Change the particle gravity scale.
|
b2ParticleSystemDef |
gravityScale(float setter) |
float |
lifetimeGranularity()
Granularity of particle lifetimes in seconds.
|
b2ParticleSystemDef |
lifetimeGranularity(float setter) |
int |
maxCount()
Set the maximum number of particles.
|
b2ParticleSystemDef |
maxCount(int setter) |
b2ParticleSystemDef |
position(long position) |
float |
powderStrength()
Produces repulsion between powder particles
Larger values repulse more
|
b2ParticleSystemDef |
powderStrength(float setter) |
float |
pressureStrength()
Increases pressure in response to compression
Smaller values allow more compression
|
b2ParticleSystemDef |
pressureStrength(float setter) |
float |
radius()
Particles behave as circles with this radius.
|
b2ParticleSystemDef |
radius(float setter) |
float |
repulsiveStrength()
Produces additional pressure on repulsive particles
Larger values repulse more
Negative values mean attraction.
|
b2ParticleSystemDef |
repulsiveStrength(float setter) |
float |
springStrength()
Restores length of spring particle groups
Larger values increase spring particle velocity
|
b2ParticleSystemDef |
springStrength(float setter) |
int |
staticPressureIterations()
Computes static pressure more precisely
See SetStaticPressureIterations for details
|
b2ParticleSystemDef |
staticPressureIterations(int setter) |
float |
staticPressureRelaxation()
Reduces instability in static pressure calculation
Larger values make stabilize static pressure with fewer iterations
|
b2ParticleSystemDef |
staticPressureRelaxation(float setter) |
float |
staticPressureStrength()
Produces static pressure
Larger values increase the pressure on neighboring partilces
For a description of static pressure, see
http://en.wikipedia.org/wiki/Static_pressure#Static_pressure_in_fluid_dynamics
|
b2ParticleSystemDef |
staticPressureStrength(float setter) |
boolean |
strictContactCheck()
Enable strict Particle/Body contact check.
|
b2ParticleSystemDef |
strictContactCheck(boolean setter) |
float |
surfaceTensionNormalStrength()
Smoothes outline of tensile particles
0~0.2.
|
b2ParticleSystemDef |
surfaceTensionNormalStrength(float setter) |
float |
surfaceTensionPressureStrength()
Produces pressure on tensile particles
0~0.2.
|
b2ParticleSystemDef |
surfaceTensionPressureStrength(float setter) |
float |
viscousStrength()
Reduces relative velocity of viscous particles
Larger values slow down viscous particles more
|
b2ParticleSystemDef |
viscousStrength(float 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 b2ParticleSystemDef(Pointer p)
Pointer(Pointer)
.public b2ParticleSystemDef(long size)
Pointer.position(long)
.public b2ParticleSystemDef()
public b2ParticleSystemDef position(long position)
public b2ParticleSystemDef getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") public boolean strictContactCheck()
public b2ParticleSystemDef strictContactCheck(boolean setter)
@Cast(value="float32") public float density()
public b2ParticleSystemDef density(float setter)
@Cast(value="float32") public float gravityScale()
public b2ParticleSystemDef gravityScale(float setter)
@Cast(value="float32") public float radius()
public b2ParticleSystemDef radius(float setter)
@Cast(value="int32") public int maxCount()
public b2ParticleSystemDef maxCount(int setter)
@Cast(value="float32") public float pressureStrength()
public b2ParticleSystemDef pressureStrength(float setter)
@Cast(value="float32") public float dampingStrength()
public b2ParticleSystemDef dampingStrength(float setter)
@Cast(value="float32") public float elasticStrength()
public b2ParticleSystemDef elasticStrength(float setter)
@Cast(value="float32") public float springStrength()
public b2ParticleSystemDef springStrength(float setter)
@Cast(value="float32") public float viscousStrength()
public b2ParticleSystemDef viscousStrength(float setter)
@Cast(value="float32") public float surfaceTensionPressureStrength()
public b2ParticleSystemDef surfaceTensionPressureStrength(float setter)
@Cast(value="float32") public float surfaceTensionNormalStrength()
public b2ParticleSystemDef surfaceTensionNormalStrength(float setter)
@Cast(value="float32") public float repulsiveStrength()
public b2ParticleSystemDef repulsiveStrength(float setter)
@Cast(value="float32") public float powderStrength()
public b2ParticleSystemDef powderStrength(float setter)
@Cast(value="float32") public float ejectionStrength()
public b2ParticleSystemDef ejectionStrength(float setter)
@Cast(value="float32") public float staticPressureStrength()
public b2ParticleSystemDef staticPressureStrength(float setter)
@Cast(value="float32") public float staticPressureRelaxation()
public b2ParticleSystemDef staticPressureRelaxation(float setter)
@Cast(value="int32") public int staticPressureIterations()
public b2ParticleSystemDef staticPressureIterations(int setter)
@Cast(value="float32") public float colorMixingStrength()
public b2ParticleSystemDef colorMixingStrength(float setter)
@Cast(value="bool") public boolean destroyByAge()
public b2ParticleSystemDef destroyByAge(boolean setter)
@Cast(value="float32") public float lifetimeGranularity()
public b2ParticleSystemDef lifetimeGranularity(float setter)
Copyright © 2022. All rights reserved.