Class CollisionSystem


  • public class CollisionSystem
    extends java.lang.Object
    Manages all of the colliders within a scene.
    • Constructor Detail

      • CollisionSystem

        public CollisionSystem()
    • Method Detail

      • addCollider

        public void addCollider​(Collider collider)
      • removeCollider

        public void removeCollider​(Collider collider)
      • raycast

        @Nullable
        public Collider raycast​(Ray ray,
                                RayHit resultHit,
                                boolean onlySelectableNodes)
      • raycastAll

        public <T extends RayHit> int raycastAll​(Ray ray,
                                                 java.util.ArrayList<T> resultBuffer,
                                                 @Nullable
                                                 java.util.function.BiConsumer<T,​Collider> processResult,
                                                 java.util.function.Supplier<T> allocateResult)
      • intersectsAll

        public void intersectsAll​(Collider collider,
                                  java.util.function.Consumer<Collider> processResult)