Physics
Bodies and colliders, collisions and overlaps, ray casts, shapes, and cloth and hair simulation.
Topics in this section
Bodies & CollidersPhysics bodies, colliders, worlds, matter, constraints, and forces.Collisions & OverlapsCollision and overlap events, their state, and contact points.Ray CastsProbes that ray cast and shape cast into a physics world, and their hits.Shapes & Collision MeshesCollision shapes, collision meshes, and the axis that orients them.Cloth & HairCloth and hair simulation: ClothVisual, HairVisual, and their assets.
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).Cloth SimulationThis guide covers the main concepts of how cloth simulation works in Lens Studio and Snapchat.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…