1 package org.jbox2d.particle; 2 3 import org.jbox2d.common.Vec2; 4 5 public class ParticleDef { 6 /** 7 * Specifies the type of particle. A particle may be more than one type. Multiple types are 8 * chained by logical sums, for example: pd.flags = ParticleType.b2_elasticParticle | 9 * ParticleType.b2_viscousParticle. 10 */ 11 int flags; 12 13 /** The world position of the particle. */ 14 public final Vec2 position = new Vec2(); 15 16 /** The linear velocity of the particle in world co-ordinates. */ 17 public final Vec2 velocity = new Vec2(); 18 19 /** The color of the particle. */ 20 public ParticleColor color; 21 22 /** Use this to store application-specific body data. */ 23 public Object userData; 24 } 25