Package net.physx4java.dynamics.actors

Examples of net.physx4java.dynamics.actors.Actor


public class CollisionHandling {
  public static void onContactNotify(int actorid1, int actorid2, int flags, float sumFrictionForce_x, float sumFrictionForce_y, float sumFrictionForce_z, float sumNormalForce_x, float sumNormalForce_y, float sumNormalForce_z) {
    // first create and fill contactpair
    ContactPair contactPair = new ContactPair();
    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);
View Full Code Here

TOP

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

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.