Physics
Apply physics simulation to an object (gravity, collisions, etc.).
Introduction
Physics gives an object real-world weight: gravity pulls it down, pushes shove it around, and bounciness and friction decide how it lands and slides. Everything from rolling barrels to falling crates starts here. The Physics component panel in the Uni editor Image The Physics component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Physics. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Properties
Mass Float How heavy the object is. The heavier it is, the harder it is to push around. Anchored Bool The object keeps its physical body and can be collided with, but forces can no longer move it. Use Gravity Lets gravity pull the object down toward the ground. Freeze Position (X, Y, Z) Locks each axis so the object cannot slide along it even when shoved. Freeze Rotation (X, Y, Z) Locks each axis so the object cannot topple or roll around it. Drag Air resistance while moving. Higher values slow the object down sooner. Angular Drag Resistance against spinning and tumbling. Bounciness How much the object bounces on impact. One is a rubber ball, zero is a stone. Static Friction The grip that keeps the object in place while it is standing still. Dynamic Friction The rubbing force that slows the object down while it is already sliding. Property Type Description Every property on the Physics component.
Events
When Colliding with Objects Fires when the object bumps into something. None Event Description Parameter Every event on the Physics component. Each event links to its full guide, where its parameters and example live.
Commands
Add Force Applies a push in world space. Force vector Add Local Force Applies a push relative to the object’s own facing. Add Torque Applies a spinning force in world space. Torque vector Add Local Torque Applies a spinning force relative to the object’s own orientation. Command Description Parameter Commands that drive the component from a script.
Example
A ball reacting to physics when pushed by a player. Physics - simple example