EntityComponentSystemSamples/PhysicsSamples
josepmariapujol-unity 993278ecef Update PhysicsSamples manifest.json & ReleaseNotes.md 2022-06-30 15:00:48 +02:00
..
Assets Updating broken shader material to prefabs 2022-06-29 15:43:44 +02:00
Packages Update PhysicsSamples manifest.json & ReleaseNotes.md 2022-06-30 15:00:48 +02:00
ProjectSettings Updating broken shader material to prefabs 2022-06-29 15:43:44 +02:00
READMEimages Phyics/Updating-PhysicsSamples-to-DOTS-0.51-2021.3.4f1 2022-06-29 14:12:08 +02:00
.editorconfig update Physics Samples 2022-03-25 15:59:58 +01:00
README.md Fixing README.md image reference with READMEimages folder 2022-06-29 17:24:35 +02:00
ReleaseNotes.md Update PhysicsSamples manifest.json & ReleaseNotes.md 2022-06-30 15:00:48 +02:00

README.md

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:

Game window

Scene List

Category Scene Description Level
Hello World 1. Hello World.unity Introductory scene for rigid body setup Introductory Demo image
Setup 2a1. Collider Parade.unity Demo showing various shapes for 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 and inertia tensor 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 ShapesSample.unity Testing demo for colliders. Turn on / off spawners to test scalability Introductory Demo Image
Query AllHitsDistanceTest.unity Demo showing results of distance queries between multiple colliders Introductory Demo Image
Query CastTest.unity Demo showing the results of collider casting and ray casting Introductory Demo Image
Query ClosestHitDistanceTest.unity Demo showing results of distance queries Introductory Demo Image
Joints 4a. Joints Parade.unity Demo showing a range of joint types Introductory Ragdoll
Joints Ragdoll.unity Obligatory stack of ragdolls demo Introductory Ragdoll
Modify ModifyBroadphasePairs.unity Filter out collision by explicitly deleting pairs from broad phase Advanced Modify broadphase Sample
Modify ModifyContactJacobians.unity Modify the results of contact generation to produce special effects Advanced Modify contacts
Modify ModifyNarrowphaseContacts.unity Add new user contacts to simulation pipeline Advanced No screenshot
Use Case CharacterController.unity User case demo showing a rudimentary FPS character controller Intermediate Character Control
Use Case Pool.unity Demonstration of calling immediate mode physics Intermediate Immediate physics
Use Case PlanetGravity.unity Performance demo of asteroids around a planet using SP/HP Introductory Planet Gravity
Use Case RaycastCar.unity User case demo showing a set of vehicle behaviors Intermediate Vehicles