Physics Forces for Unity3D - Circular Gravity , AntiGravity , Projectile and Buoyancy
Physics simulations are one of the most aspect of 3D games. Here's a collection of 4 Physics forces simulation scripts which can simulate Circular Gravity (Universal law of gravitation) ,Circular Anti-Gravity (or Repulsive forces), Buoyancy and Projectile trajectory . See Web player demo here for all forces. Documentation : Gravity : Drag the script " PlanetaryGravity.cs " on the object you want to execute gravity. There ate various parameters :- - Range Of gravity : To limit the range of force. - Mass : Mass of object. It will override the default mass of attached rigidbody (if rigidbody is attached) - Layer Mask : It gives you the option on which layers the force will act. - Gravity Type : It has two choices i.e Gravity and Anti-Gravity. - G : It is Gravitational Constant which appears in Newtons law of gravitation. You can change it if you want. You can also use this to simulate Magnetic or Electric Forces. Buoyancy : It consist two things