Package net.physx4java.dynamics.actors

Examples of net.physx4java.dynamics.actors.BoxActor


      return;
    }
    addText("PhysX loaded..");
    addText("Testing PhysX");
    pause(3);
    BoxActor a = new BoxActor(new ActorParameters(1000, false, true), world, 0, 100, 0, 0);
    a.setMass(200);
    world.addActor(a);
    world.setGravity(0, -100, 0);
    for (int i = 0; i < 20; i++) {
      world.step(0.01f);
      addText("Testing falling actor, position = " + a.getPosition());
      a.update();
    }
    addText("Test completed, no failure");
  }
View Full Code Here

TOP

Related Classes of net.physx4java.dynamics.actors.BoxActor

Copyright © 2018 www.massapicom. 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.