Skip to content

Latest commit

 

History

History
66 lines (60 loc) · 13.1 KB

File metadata and controls

66 lines (60 loc) · 13.1 KB

Unity Physics Samples

Controls

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.

Scene List

Category Scene Description Image
Hello World 1. Hello World/Hello World.unity Introductory scene for rigid body setup Demo image
Hello World 1. Hello World/SphereAndBoxColliders.unity Basic colliders Demo image
Hello World 2. Gravity Well/GravityWell.unity Introductory scene with gravitating objects Demo image
Setup 3. Collision Geometry/Collider Parade - Basic.unity Demo of various shapes for collision detection Demo image
Setup 3. Collision Geometry/Collider Parade - Advanced Demo of various shapes for more advanced collision detection Demo image
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 Demo image
Setup 4. Motion Properties/Motion Properties - Velocity.unity Setting initial linear and angular velocities Demo Image
Setup 4. Motion Properties/Motion Properties - Damping.unity Demo of the effect of linear and angular damping Demo Image
Setup 4. Motion Properties/Motion Properties - Gravity Factor.unity Demo of the effect of per body gravity multipliers Demo Image
Setup 4. Motion Properties/Motion Properties - Center of Mass.unity Demo of the effect of overriding center of mass Demo Image
Setup 4. Motion Properties/Motion Properties - Inertia Tensor.unity Demo of the effect of overriding inertia tensor Demo Image
Setup 4. Motion Properties/Motion Properties - Smoothing.unity Demo of the effect of interpolation and extrapolation Demo Image
Setup 5. Material Properties/Material Properties - Friction.unity Demo of the effect of different friction material values Demo Image
Setup 5. Material Properties/Material Properties - Restitution.unity Demo of the effect of different restitution values Demo Image
Setup 5. Material Properties/Material Properties - Collision Filters.unity Demo of the effect of different collision filters Demo Image
Setup 6. Events/Events - Triggers.unity Demo of the usage of triggers Demo Image
Setup 6. Events/Events - Contacts.unity Demo of the effect of different contacts Demo Image
Query 7. Queries/Query - All Distances.unity Demo of distance queries between multiple colliders Demo Image
Query 7. Queries/Query - Cast.unity Demo of collider casting Demo Image
Query 7. Queries/Query - Closest Distance.unity Demo of distance queries for closest hits Demo Image
Query 7. Queries/Query - Custom Collector.unity Demo of custom collection of query hits Demo Image
Joints and Motors 8. Joints and Motors/Joints - Parade.unity Demo of a range of joint types Demo Image
Joints and Motors 8. Joints and Motors/Joints - Limit DOF.unity Demo of limiting degrees of freedom Demo Image
Joints and Motors 8. Joints and Motors/Motors - Parade.unity Demo of the various motors Demo Image
Joints and Motors 8. Joints and Motors/Motors - Position.unity Demo of position motors Demo Image
Joints and Motors 8. Joints and Motors/Motors - Linear Velocity.unity Demo of linear velocity motors Demo Image
Joints and Motors 8. Joints and Motors/Motors - Angular Velocity.unity Demo of angular velocity motors Demo Image
Joints and Motors 8. Joints and Motors/Motors - Rotational.unity Demo of rotational motors Demo Image
Joints and Motors 8. Joints and Motors/Joints - Ragdolls.unity Demo of a stack of ragdolls Ragdoll
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 Demo Image
Modify 9. Modify/Modify - Motion Type.unity Demo of changing motion types Demo Image
Modify 9. Modify/Modify - Box Collider Size.unity Demo of changing a collider's size at runtime Demo Image
Modify 9. Modify/Modify - Collider Type.unity Demo of changing a collider's type at runtime Demo Image
Modify 9. Modify/Modify - Velocity.unity Demo of change of velocity Demo Image
Modify 9. Modify/Modify - Kinematic Motion.unity Demo of kinematic motion in combination with dynamic objects Demo Image
Modify 9. Modify/Modify - Surface Velocity.unity Demo of changing surface velocity Demo Image
Modify 9. Modify/Modify - Scale.unity Demo of scale change of entities Demo Image
Modify 9. Modify/Modify - Apply Impulse.unity Demo of application of impulses Demo Image
Modify 9. Modify/Modify - Broadphase Pairs.unity Demo of filtering of collisions by explicitly deleting pairs from the broad phase Modify broadphase Sample
Modify 9. Modify/Modify - Contact Jacobians.unity Demo of modification of the results of contact generation to produce special effects Modify contacts
Modify 9. Modify/Modify - Narrowphase Contacts.unity Demo of adding new user contacts to the simulation pipeline Modify Narrowphase contacts
Modify 9. Modify/Modify - Runtime Collider/Modify - Collider Material - Bouncy Boxes.unity Demo of unique prefab instantiation with collider material changes Demo Image
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 Demo Image
Modify 9. Modify/Modify - Runtime Collider/Modify - Collider Creation.unity Demo of creation of mesh colliders at runtime Modify colliders during runtime
Modify 9. Modify/Modify - Runtime Collider/Modify - Collision Filter.unity Demo of modification of collision filters during runtime Modify collision filters during runtime
Modify 9. Modify/Modify - Runtime Collider/Modify - Collider Geometry.unity Demo of modification of collider geometry during runtime Modify 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 Immediate physics
Use Case 11. Planet Gravity/Planet Gravity.unity Demo of performance: asteroids orbiting around a planet using SP/HP Planet Gravity
Use Case 12. Raycast Car/Raycast Car.unity Demo of a raycast-based vehicle controller Vehicles
Use Case 13. Character Controller.unity User case demo showing a rudimentary FPS character controller Character Control