Package org.pollux3d.core.event

Examples of org.pollux3d.core.event.NothingHitClickEvent


  public void click(Vector2f point) {
    Ray clickRay = cam.getClickRay(point);
    CollisionResults results = map.getCollisions(clickRay);
    if (results.size() == 0) {
      if (listener != null) {
        listener.onPolluxEvent(new NothingHitClickEvent(this.getClass().getName()));
      }
    } else {
      for (int i = 0; i < results.size(); i++) {   
        try {
          MapEntity me = Pollux.get().getGeometryManager().getMapEntity(results.getCollision(i).getGeometry());
View Full Code Here

TOP

Related Classes of org.pollux3d.core.event.NothingHitClickEvent

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.