# Physics for Realistic Simulations

Realistic physics for AR/VR, including gravity, friction, and bounciness.

[Open in Mattercraft](https://app.mattercraft.io/?sb=Basic%20Physics\&t=physics-basic) [Try now](https://webxr.run/LrZDOA5kzA7Aa) Try now

[< Back to templates](https://zap.works/templates/)

This template is a great place to get started if you want to build a project with Physics.

You can see how the ball falls and bounces off the floor, and how the cube is affected by gravity.

Both, the ball and the cube, have a RigidBody behavior attached to them. This behavior allows you to set the mass, friction, and bounciness of the object.

This project includes a default splash page - a 'launch' screen shown to the user when they first land on your page. It's important for both technical and user experience related reasons. You can customize it in the index.html file.

Rendering Engine

three.js

Supported Browsers

Google Chrome\
Microsoft Edge\
Safari on iOS and MacOS

Scripting Language

TypeScript

---
Canonical: https://zap.works/templates/physics-basic/
