Package net.physx4java

Examples of net.physx4java.WorldPhysX


    Actor actor1 = WorldPhysX.getActorById(actorid1);
    Actor actor2 = WorldPhysX.getActorById(actorid2);
    contactPair.setActor1(actor1);
    contactPair.setActor2(actor2);
    // get world
    WorldPhysX world = actor1.getWorld();
    // System.out.println(actor1+" "+actor2+" "+world);
    // if(2+2==4) return;
    contactPair.setSumFrictionForce(new Vector3f(sumFrictionForce_x, sumFrictionForce_y, sumFrictionForce_z));
    contactPair.setSumNormalforce(new Vector3f(sumNormalForce_x, sumNormalForce_y, sumNormalForce_z));
    contactPair.setFlags(flags);
    // call listeners
    CollisionListener listener = world.getListener();
    listener.onContactNotify(contactPair);
  }
View Full Code Here

TOP

Related Classes of net.physx4java.WorldPhysX

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.