Bodies & Colliders
Physics bodies, colliders, worlds, matter, constraints, and forces.
Commonly used
ColliderComponentUsed to define the physical boundaries of an object, allowing it to interact with other objects in Physics, Cloth or Hair simulation.BodyComponentAllows Physics simulation to control SceneObject.Physics
Guides
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.Collision and OverlapThe physics system allows you to respond to collisions and overlap through events on the Collider or Body component.RaycastIn some cases, you may want the Lens user, or objects, to interact based on line of sight (that is, a ray).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…CanvasCanvas is a component that creates a dedicated root within the ScreenTransform hierarchy to dynamically place 2D Components, like Text and Image, in 3D space.
All APIs in this topic
Add components to a scene object and reference assets and other modules with a script input.
Components, assets, and modules
| API | Description |
|---|---|
| BodyComponent | Allows Physics simulation to control SceneObject. |
| ColliderComponent | Used to define the physical boundaries of an object, allowing it to interact with other objects in Physics, Cloth or Hair simulation. |
| ConstraintComponent | Used to apply specific restrictions on how a SceneObject with BodyComponent can move. |
| Matter | Settings for the physical substance, such as friction and bounciness, of a collider. |
| WorldComponent | Groups Physics objects in its subtree into an independent world simulation. |
Objects and data
| API | Description |
|---|---|
| Physics |
Related topics
Physics › Collisions & OverlapsCollision and overlap events, their state, and contact points.Physics › Ray CastsProbes that ray cast and shape cast into a physics world, and their hits.InteractionTouch, tap, gestures and manipulation, SPECS hand gestures (Gesture Module), keyboard and text input, controllers, and haptics.