Skip to main content
Version: 4.55.1

Physics Overview

Use Lens Studio’s physics engine to make your Lenses more dynamic and engaging.

The physics engine allows you to:

  • Dynamically simulate real-world physics effects.
  • Define 3D geometry to determine when objects or rays intersect.

Check out Physics Template and Physics Toy Template for examples of using Physics in Lens Studio.

Getting Started

Learn more about adding physics to your Lenses:

Trigger and respond to Physics using the Behavior helper script.

Limitations

  • We recommend a maximum of 200 physics objects for mobile devices and 100 physics objects for Spectacles (2021). However, you should optimize your Lens' physics usage according to your needs. Different features, such as hair and cloth simulation, involve heavy processing that can cause your FPS to drop.
  • Avoid very small or very large collision bodies. We recommend a minimum size of 10 cm and a maximum size of 5m for moving and colliding bodies under normal gravitational forces. Lens Studio’s default units are in cm.
  • Continuous Collision Detection is not supported. Fast moving objects might go through thin colliders due to tunneling.
Was this page helpful?
Yes
No

AI-Powered Search