Examples of ParticleGroupDef


Examples of org.jbox2d.particle.ParticleGroupDef

    {
      CircleShape shape = new CircleShape();
      shape.m_p.set(0, 30);
      shape.m_radius = 20;
      ParticleGroupDef pd = new ParticleGroupDef();
      pd.flags = ParticleType.b2_waterParticle;
      pd.shape = shape;
      m_world.createParticleGroup(pd);
    }
View Full Code Here

Examples of org.jbox2d.particle.ParticleGroupDef

    m_world.setParticleRadius(0.15f);
    m_world.setParticleDamping(0.2f);

    {
      ParticleGroupDef pd = new ParticleGroupDef();
      pd.flags = 0;

      PolygonShape shape = new PolygonShape();
      shape.setAsBox(9.0f, 9.0f, new Vec2(0.0f, 10.0f), 0.0f);
View Full Code Here

Examples of org.jbox2d.particle.ParticleGroupDef

    m_world.setParticleRadius(0.2f);
    {
      PolygonShape shape = new PolygonShape();
      shape.setAsBox(20, 10, new Vec2(0, 10), 0);
      ParticleGroupDef pd = new ParticleGroupDef();
      pd.flags = pd.flags;
      pd.shape = shape;
      m_world.createParticleGroup(pd);
    }
View Full Code Here

Examples of org.jbox2d.particle.ParticleGroupDef

    m_world.setParticleRadius(0.15f);
    m_world.setParticleDamping(0.2f);
    {
      PolygonShape shape = new PolygonShape();
      shape.setAsBox(8, 10, new Vec2(-12, 10.1f), 0);
      ParticleGroupDef pd = new ParticleGroupDef();
      pd.shape = shape;
      m_world.createParticleGroup(pd);
    }
  }
View Full Code Here

Examples of org.jbox2d.particle.ParticleGroupDef

    m_world.setParticleRadius(0.15f);
    {
      PolygonShape shape = new PolygonShape();
      shape.setAsBox(20, 4, new Vec2(0, 36), 0);
      ParticleGroupDef pd = new ParticleGroupDef();
      pd.flags = ParticleType.b2_tensileParticle | ParticleType.b2_viscousParticle;
      pd.shape = shape;
      m_world.createParticleGroup(pd);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.