public class ParticleGroupDef extends Object
| Modifier and Type | Field and Description |
|---|---|
float |
angularVelocity
The angular velocity of the group.
|
| Constructor and Description |
|---|
ParticleGroupDef() |
| Modifier and Type | Method and Description |
|---|---|
float |
getAngle() |
float |
getAngularVelocity() |
ParticleColor |
getColor() |
int |
getGroupFlags() |
Vec2 |
getLinearVelocity() |
Vec2 |
getPosition() |
Shape |
getShape() |
float |
getStrength() |
int |
getTypeFlags() |
Object |
getUserData() |
boolean |
isDestroyAutomatically() |
void |
setAngle(float angle)
The world angle of the group in radians.
|
void |
setAngularVelocity(float angularVelocity) |
void |
setColor(ParticleColor color) |
void |
setDestroyAutomatically(boolean destroyAutomatically) |
void |
setGroupFlags(int groupFlags) |
void |
setPosition(float x,
float y)
Moves the group's shape a distance equal to the value of
position.
|
void |
setShape(Shape shape) |
void |
setStrength(float strength) |
void |
setTypes(Set<ParticleType> types)
Set particle types.
|
public int getTypeFlags()
ParticleTypeInternalpublic void setTypes(Set<ParticleType> types)
types - particle typespublic int getGroupFlags()
public void setGroupFlags(int groupFlags)
public Vec2 getPosition()
public void setPosition(float x,
float y)
x - x coordy - y coordpublic float getAngle()
public void setAngle(float angle)
angle - in radianspublic Vec2 getLinearVelocity()
public float getAngularVelocity()
public void setAngularVelocity(float angularVelocity)
public ParticleColor getColor()
public void setColor(ParticleColor color)
public float getStrength()
public void setStrength(float strength)
public Shape getShape()
public void setShape(Shape shape)
shape - the shape containing the particle grouppublic boolean isDestroyAutomatically()
public void setDestroyAutomatically(boolean destroyAutomatically)
public Object getUserData()
Copyright © 2017. All rights reserved.