Skip to content

Latest commit

 

History

History
72 lines (64 loc) · 13.7 KB

File metadata and controls

72 lines (64 loc) · 13.7 KB

Unity Physics Samples

Controls

In the Game window:

  • Mouse spring : Click and drag with left mouse
  • Camera rotate : Click and drag with right mouse
  • Camera move : W,A,S,D keys

Debug Display

A lot of the demos display extra information as debug display gizmos in the Editor, for example the Query demos (ray cast, distance cast, etc). This display for these gizmos is in the Scene not the Game window. So keep an eye on both if in doubt:

Scene view Game view
Game window Game window

Scene List

Category Scene Description Level
Hello World Hello World.unity Introductory scene for rigid body setup Introductory Demo image
Hello World SphereAndBoxColliders.unity Basic colliders Introductory Demo image
Hello World GravityWell.unity Introductory scene Introductory Demo image
Setup 2a1. Collider Parade - Basic.unity Demo showing various shapes for collision detection Introductory Demo image
Setup 2a2. Collider Parade - Advanced Demo showing various shapes for more advanced collision detection Introductory Demo image
Setup 2b1. Motion Properties - Mass.unity Demo showing how to explicitly set mass properties using custom (yellow) and built-in (grey) authoring components Introductory Demo image
Setup 2b2. Motion Properties - Velocity.unity Setting initial linear and angular velocities Introductory Demo Image
Setup 2b3. Motion Properties - Damping.unity Demo showing the effect of linear and angular damping Introductory Demo Image
Setup 2b4. Motion Properties - Gravity Factor.unity Demo showing the effect of per body gravity multipliers Introductory Demo Image
Setup 2b5. Motion Properties - Center of Mass.unity Demo showing the effect of overriding center of mass Introductory Demo Image
Setup 2b6. Motion Properties - Inertia Tensor.unity Demo showing the effect of overriding inertia tensor Introductory Demo Image
Setup 2b7. Motion Properties - Smoothing.unity Demo showing the effect of interpolation and extrapolation Introductory Demo Image
Setup 2c1. Material Properties - Friction.unity Showing effect of different friction material values Introductory Demo Image
Setup 2c2. Material Properties - Restitution.unity Showing effect of different restitution values Introductory Demo Image
Setup 2c3. Material Properties - Collision Filters.unity Showing effect of different collision filters Introductory Demo Image
Setup 2d1. Events - Triggers.unity Demo demonstrating the usage of triggers Introductory Demo Image
Setup 2d2. Events - Contacts.unity Showing effect of different contacts Introductory Demo Image
Query 3a. All Hits Distance Test.unity Demo showing results of distance queries between multiple colliders Introductory Demo Image
Query 3b. Cast Test.unity Demo showing the results of collider casting and ray casting Introductory Demo Image
Query 3c. Closest Hit Distance Test.unity Demo showing results of distance queries Introductory Demo Image
Query 3d. Custom Collector.unity Demonstration of raycast Introductory Demo Image
Joints 4a. Joints Parade.unity Demo showing a range of joint types Introductory Demo Image
Joints 4b. Limit DOF.unity Showing effect of limiting degrees of freedom Introductory Demo Image
Joints 4c1. All Motors Parade.unity Demo showing different motors Introductory Demo Image
Joints 4c2. Position Motor.unity Demo showing position motor Introductory Demo Image
Joints 4c3. Linear Velocity Motor.unity Showing linear velocity motor Introductory Demo Image
Joints 4c4. Angular Velocity Motor.unity Demonstrating angular velocity motor Introductory Demo Image
Joints 4c5. Rotational Motor.unity Demonstrating rotational motor Introductory Demo Image
Joints 4d. Ragdolls.unity Obligatory stack of ragdolls demo Introductory Ragdoll
Joints 4e. Single Ragdoll.unity GameObject ragdoll for Unity Physics (left) and built-in physics (right), created using the Ragdoll Wizard Introductory Demo Image
Modify 5a. Change Motion Type.unity Demo showing change of motion type Introductory Demo Image
Modify 5b. Change Box Collider Size.unity Demonstrating runtime change of collider size Introductory Demo Image
Modify 5c. Change Collider Type.unity Demonstrating change of collider type Introductory Demo Image
Modify 5d. Change Velocity.unity Demo showing change of velocity Introductory Demo Image
Modify 5e. Kinematic Motion.unity Demo showing kinematic motion in combination with dynamic objects Introductory Demo Image
Modify 5f. Change Surface Velocity.unity Demo showing change of surface velocity Introductory Demo Image
Modify 5g1. Change Collider Material - Bouncy Boxes.unity Demo showing effect of unique prefab instantiation with collider material changes Intermediate Demo Image
Modify 5g2. Unique Collider Blob Sharing.unity Demo showing effect of instantiating prefabs during runtime, making collider blobs unique and sharing collider blob data Advanced Demo Image
Modify 5g3. Runtime Collider Creation.unity Create mesh colliders during runtime Advanced Modify colliders during runtime
Modify 5g4. Runtime Collision Filter Modification.unity Modify collision filters during runtime Advanced Modify collision filters during runtime
Modify 5g5. Modify Collider Geometry.unity Modify collider geometry during runtime Advanced Modify collider geometry during runtime
Modify 5h. Change Scale.unity Demo showing scale change of entities Introductory Demo Image
Modify 5i. Apply Impulse.unity Demo showing application of impulses Introductory Demo Image
Modify 5j. Modify Broadphase Pairs.unity Filter out collision by explicitly deleting pairs from broad phase Advanced Modify broadphase Sample
Modify 5k. Modify Contact Jacobians.unity Modify the results of contact generation to produce special effects Advanced Modify contacts
Modify 5l. Modify Narrowphase Contacts.unity Add new user contacts to simulation pipeline Advanced Modify Narrowphase contacts
Use Case 6a. Character Controller.unity User case demo showing a rudimentary FPS character controller Intermediate Character Control
Use Case 6b. Pool.unity Demonstration of calling immediate mode physics Intermediate Immediate physics
Use Case 6c. Planet Gravity.unity Performance demo of asteroids around a planet using SP/HP Introductory Planet Gravity
Use Case 6d. Raycast Car.unity User case demo showing a set of vehicle behaviors Intermediate Vehicles