In the Game window:
- Drag objects: click and drag with left mouse
- Rotate camera: click and drag with right mouse
- Move camera: WASD keys
NOTE: Many of these samples display extra information as debug display gizmos in the Editor. For example, the Query samples display raycasts as debug lines that are only visible when Gizmos are enabled. In some cases, the Gizmos may only be visible in the scene window and not the game window.
Category | Scene | Description | Image |
---|---|---|---|
Hello World | 1. Hello World/Hello World.unity | Introductory scene for rigid body setup | |
Hello World | 1. Hello World/SphereAndBoxColliders.unity | Basic colliders | |
Hello World | 2. Gravity Well/GravityWell.unity | Introductory scene with gravitating objects | |
Setup | 3. Collision Geometry/Collider Parade - Basic.unity | Demo of various shapes for collision detection | |
Setup | 3. Collision Geometry/Collider Parade - Advanced | Demo of various shapes for more advanced collision detection | |
Setup | 4. Motion Properties/Motion Properties - Mass.unity | Demo of how to explicitly set mass properties using custom (yellow) and built-in (grey) authoring components | |
Setup | 4. Motion Properties/Motion Properties - Velocity.unity | Setting initial linear and angular velocities | |
Setup | 4. Motion Properties/Motion Properties - Damping.unity | Demo of the effect of linear and angular damping | |
Setup | 4. Motion Properties/Motion Properties - Gravity Factor.unity | Demo of the effect of per body gravity multipliers | |
Setup | 4. Motion Properties/Motion Properties - Center of Mass.unity | Demo of the effect of overriding center of mass | |
Setup | 4. Motion Properties/Motion Properties - Inertia Tensor.unity | Demo of the effect of overriding inertia tensor | |
Setup | 4. Motion Properties/Motion Properties - Smoothing.unity | Demo of the effect of interpolation and extrapolation | |
Setup | 5. Material Properties/Material Properties - Friction.unity | Demo of the effect of different friction material values | |
Setup | 5. Material Properties/Material Properties - Restitution.unity | Demo of the effect of different restitution values | |
Setup | 5. Material Properties/Material Properties - Collision Filters.unity | Demo of the effect of different collision filters | |
Setup | 6. Events/Events - Triggers.unity | Demo of the usage of triggers | |
Setup | 6. Events/Events - Contacts.unity | Demo of the effect of different contacts | |
Query | 7. Queries/Query - All Distances.unity | Demo of distance queries between multiple colliders | |
Query | 7. Queries/Query - Cast.unity | Demo of collider casting | |
Query | 7. Queries/Query - Closest Distance.unity | Demo of distance queries for closest hits | |
Query | 7. Queries/Query - Custom Collector.unity | Demo of custom collection of query hits | |
Joints and Motors | 8. Joints and Motors/Joints - Parade.unity | Demo of a range of joint types | |
Joints and Motors | 8. Joints and Motors/Joints - Limit DOF.unity | Demo of limiting degrees of freedom | |
Joints and Motors | 8. Joints and Motors/Motors - Parade.unity | Demo of the various motors | |
Joints and Motors | 8. Joints and Motors/Motors - Position.unity | Demo of position motors | |
Joints and Motors | 8. Joints and Motors/Motors - Linear Velocity.unity | Demo of linear velocity motors | |
Joints and Motors | 8. Joints and Motors/Motors - Angular Velocity.unity | Demo of angular velocity motors | |
Joints and Motors | 8. Joints and Motors/Motors - Rotational.unity | Demo of rotational motors | |
Joints and Motors | 8. Joints and Motors/Joints - Ragdolls.unity | Demo of a stack of ragdolls | |
Joints and Motors | 8. Joints and Motors/Joints - Single Ragdoll.unity | Demo of a GameObject-authored ragdoll for Unity Physics (left) and a built-in physics (right), created using the Ragdoll Wizard | |
Modify | 9. Modify/Modify - Motion Type.unity | Demo of changing motion types | |
Modify | 9. Modify/Modify - Box Collider Size.unity | Demo of changing a collider's size at runtime | |
Modify | 9. Modify/Modify - Collider Type.unity | Demo of changing a collider's type at runtime | |
Modify | 9. Modify/Modify - Velocity.unity | Demo of change of velocity | |
Modify | 9. Modify/Modify - Kinematic Motion.unity | Demo of kinematic motion in combination with dynamic objects | |
Modify | 9. Modify/Modify - Surface Velocity.unity | Demo of changing surface velocity | |
Modify | 9. Modify/Modify - Scale.unity | Demo of scale change of entities | |
Modify | 9. Modify/Modify - Apply Impulse.unity | Demo of application of impulses | |
Modify | 9. Modify/Modify - Broadphase Pairs.unity | Demo of filtering of collisions by explicitly deleting pairs from the broad phase | |
Modify | 9. Modify/Modify - Contact Jacobians.unity | Demo of modification of the results of contact generation to produce special effects | |
Modify | 9. Modify/Modify - Narrowphase Contacts.unity | Demo of adding new user contacts to the simulation pipeline | |
Modify | 9. Modify/Modify - Runtime Collider/Modify - Collider Material - Bouncy Boxes.unity | Demo of unique prefab instantiation with collider material changes | |
Modify | 9. Modify/Modify - Runtime Collider/Modify - Unique Collider Blob Sharing.unity | Demo of instantiating prefabs during runtime, making collider blobs unique, and sharing collider blob data | |
Modify | 9. Modify/Modify - Runtime Collider/Modify - Collider Creation.unity | Demo of creation of mesh colliders at runtime | |
Modify | 9. Modify/Modify - Runtime Collider/Modify - Collision Filter.unity | Demo of modification of collision filters during runtime | |
Modify | 9. Modify/Modify - Runtime Collider/Modify - Collider Geometry.unity | Demo of modification of collider geometry during runtime | |
Use Case | 10. Immediate Mode/Pool.unity | A pool game that uses "immediate mode" to project the ball movements before the shot is taken | |
Use Case | 11. Planet Gravity/Planet Gravity.unity | Demo of performance: asteroids orbiting around a planet using SP/HP | |
Use Case | 12. Raycast Car/Raycast Car.unity | Demo of a raycast-based vehicle controller | |
Use Case | 13. Character Controller.unity | User case demo showing a rudimentary FPS character controller |