Skip to content

Latest commit

 

History

History
86 lines (49 loc) · 2.3 KB

BasicClassicalPhysics.md

File metadata and controls

86 lines (49 loc) · 2.3 KB

Basic classical Physics

Note: this project has migrated to Unity 2019.

This project has multiple scenes:

  • Free fall
  • Pendulum
  • Slope
  • Vector
  • Friction (cube)
  • Friction (excavator)
  • Brake
  • Collision
  • Torque, Moment of Inertia and Rotaional Energy
  • Solar system

I have confirmed that all the Physics experiments on Unity follow the lows of Classical Physics.

Free fall

freefall

Pendulum

pendulum

Slope

slope

Vector

Realtime rendering of velocity vector.

velocityVector

Friction (Cube)

Comparison between Unity's Physics and real world Physics.

friction

[Note] The friction value in the Physical material used in the simulation is set to 0.3 (that corresponds to 0.6 in real Physics) due to the following reason:

https://docs.unity3d.com/Manual/class-PhysicMaterial.html

"Please note that the friction model used by the Nvidia PhysX engine is tuned for performance and stability of simulation, and does not necessarily present a close approximation of real-world physics. In particular, contact surfaces which are larger than a single point (such as two boxes resting on each other) will be calculated as having two contact points, and will have friction forces twice as big as they would in real world physics. You may want to multiply your friction coefficients by 0.5 to get more realistic results in such a case."

Friction (Excavator)

One Rigidbody with one Box Collider for each track (left and right tracks). The simulation result is exactly same as the above.

frictionExcavator

Brake

brake

Collision

collision

Torque, Moment of Inertia and Rotational Energy

torque

Coping with this error

Assets\Standard Assets\Utility\SimpleActivatorMenu.cs(11,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'

Just remove "Assets\Utility\SimpleActivatorMenu.cs".

Solar system

This simulation replaces Unity's Gravity (-9.81 m/s^2 of accerelation) with Universal Law of Attraction for simulating the Solar system.

solarsystem

Code

=> Code

There are multiple scenes in "BasicClassicalPhysics\Assets\Scenes".