Class CollisionSystem
- java.lang.Object
-
- com.google.ar.sceneform.collision.CollisionSystem
-
public class CollisionSystem extends java.lang.Object
Manages all of the colliders within a scene.
-
-
Constructor Summary
Constructors Constructor Description CollisionSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCollider(Collider collider)
Collider
intersects(Collider collider)
void
intersectsAll(Collider collider, java.util.function.Consumer<Collider> processResult)
Collider
raycast(Ray ray, RayHit resultHit, boolean onlySelectableNodes)
<T extends RayHit>
intraycastAll(Ray ray, java.util.ArrayList<T> resultBuffer, java.util.function.BiConsumer<T,Collider> processResult, java.util.function.Supplier<T> allocateResult)
void
removeCollider(Collider collider)
-
-
-
Method Detail
-
addCollider
public void addCollider(Collider collider)
-
removeCollider
public void removeCollider(Collider collider)
-
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)
-
-