Package net.physx4java.dynamics.actors

Examples of net.physx4java.dynamics.actors.ActorParameters


      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);
View Full Code Here


    super(null);
    this.name = name;
    this.actor1 = actor1;
    this.actor2 = actor2;
    // helperActor
    ActorParameters actorParameters = new ActorParameters();
    actorParameters.setDensity(helperActorDensity);
    helperActor = new SphereActor(actorParameters, world, helperActorSize, 0);
    CollisionDisabler.disableCollision(world, helperActor);
    helperActor.setName(name + "helperActor");
    helperActor.setRotation(actor1.getRotation());
    helperActor.setPosition(anchor);
View Full Code Here

TOP

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

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.