ricardojmendez / UnitySteer

Steering, obstacle avoidance and path following behaviors for the Unity Game Engine
https://numergent.com/tags/unitysteer/
Other
1.2k stars 275 forks source link

how to apply gravity in UnitySteer? #27

Closed sonygod closed 9 years ago

sonygod commented 9 years ago

how to apply gravity in UnitySteer?instead of use is Kinematic?

ricardojmendez commented 9 years ago

It depends on your use.

If it's for a single character, you could attach a CharacterController to it, but that can get expensive.

Alternatively, if you have some custom gravity you could just subclass AutonomousVehicle or Biped and override CalculatePositionDelta to apply a force pulling down the vehicle.