Ray Casts
Probes that ray cast and shape cast into a physics world, and their hits.
Commonly used
PhysicsIn Physics › Bodies & CollidersProbePerforms collision tests (such as ray casts) in one or more world.
Guides
RaycastIn some cases, you may want the Lens user, or objects, to interact based on line of sight (that is, a ray).Collision and OverlapThe physics system allows you to respond to collisions and overlap through events on the Collider or Body component.ForceForce can be applied in various ways to move a physics body.PhysicsThe Physics sample project demonstrates how you can use Physics in Lens Studio to dynamically simulate real-world physical effects and define 3D geometry for raycast or collisio…Physics Assets and ComponentsPhysics is added to a Lens through a variety of assets and components that allow you to define how physics works on an object and in a scene.
All APIs in this topic
Objects and data
| API | Description |
|---|---|
| Probe | Performs collision tests (such as ray casts) in one or more world. |
| RayCastHit | Hit results of a ray-cast provided to script. |
| TriangleHit | Triangle hit information, available when a ray cast intersects a collision mesh. |