Shapes & Collision Meshes
Collision shapes, collision meshes, and the axis that orients them.
Commonly used
ShapeBase type for collision shapes.BoxShapeA box collision shape.CapsuleShapeA capsule collision shape.
Guides
Collision and OverlapThe physics system allows you to respond to collisions and overlap through events on the Collider or Body component.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.RaycastIn some cases, you may want the Lens user, or objects, to interact based on line of sight (that is, a ray).
All APIs in this topic
Reference assets and other modules with a script input.
Components, assets, and modules
| API | Description |
|---|---|
| CollisionMesh | Defines the physical boundaries of an object for collision detection. |
| DeformingCollisionMesh | Used for collision meshes that can change shape or form dynamically. |
| FixedCollisionMesh | Used for collision meshes that remain static and do not change their shape over time. |
Objects and data
| API | Description |
|---|---|
| BoxShape | A box collision shape. |
| CapsuleShape | A capsule collision shape. |
| ConeShape | A cone collision shape. |
| CylinderShape | A cylinder collision shape. |
| LevelsetShape | A levelset collision shape. |
| MeshShape | Allows meshes to be used as collision shapes, for ColliderComponent and BodyComponent. |
| Shape | Base type for collision shapes. |
| SphereShape | A sphere collision shape. |
Enums
| API | Description |
|---|---|
| Axis | Cardinal axis enumeration. |