Package jinngine.physics.ContactTrigger

Examples of jinngine.physics.ContactTrigger.Callback


    // put gravity on box
    scene.addForce( new GravityForce(box))
   
    // create a trigger to detect contact forces with some threshold
    scene.addTrigger(new ContactTrigger(box, 2.0, new Callback(){
      @Override
      public void contactAboveThreshold(Body interactingBody,
          ContactConstraint constraint) {
        System.out.println("In contact with " + interactingBody  );
      }
View Full Code Here

TOP

Related Classes of jinngine.physics.ContactTrigger.Callback

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.