Physics

Other than programmed animations, Unity objects can be set up to move and interact on their own, using physics properties. When an object is assigned a Rigid Body, it can have Mass and Drag (resistance), and respond to Gravity. Once set in motion, Unity's physics engine will automatically calculate the object's next move and update it with each frame.

Separately, objects can be given a Collider mesh that defines the shape and bounds of itself used to calculate if and when the objects hit other objects. This may be as simple as a table standing steadfast on the floor (gravity), or a projectile in flight hitting its target. Objects can also be given a Physic Material that defines how it responds, such as landing like a brick or bouncing ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.