Skip to content

Latest commit

 

History

History
67 lines (59 loc) · 12.3 KB

File metadata and controls

67 lines (59 loc) · 12.3 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 1a. Hello World.unity Introductory scene for rigid body setup Introductory Demo image
Hello World 1b. Representations.unity Introductory scene for combining physics with graphics Introductory Demo image
Hello World 1c. Conversion.unity Introductory scene for conversions Introductory Demo image
Setup 2a1. Collider Parade - Basic.unity Demo showing various shapes for collision detection Introductory Demo image
Setup 2a2. Collision 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 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. AllHitsDistanceTest.unity Demo showing results of distance queries between multiple colliders Introductory Demo Image
Query 3b. CastTest.unity Demo showing the results of collider casting and ray casting Introductory Demo Image
Query 3c. ClosestHitDistanceTest.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. Ragdoll.unity Obligatory stack of ragdolls demo Introductory Ragdoll
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 5g. Change Collider Filter.unity Demo showing effect of collider filter change Introductory Demo Image
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. ModifyBroadphasePairs.unity Filter out collision by explicitly deleting pairs from broad phase Advanced Modify broadphase Sample
Modify 5k. ModifyContactJacobians.unity Modify the results of contact generation to produce special effects Advanced Modify contacts
Modify 5l. ModifyNarrowphaseContacts.unity Add new user contacts to simulation pipeline Advanced Modify Narrowpahse contacts
Use Case 6a. CharacterController.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. PlanetGravity.unity Performance demo of asteroids around a planet using SP/HP Introductory Planet Gravity
Use Case 6d. RaycastCar.unity User case demo showing a set of vehicle behaviors Intermediate Vehicles