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

Cannot set the velocity directly on PassiveVehicle #29

Closed SonnyAD closed 9 years ago

SonnyAD commented 9 years ago

Hi :) There is a small mistake/incoherence in PassiveVehicle.cs. The Velocity property setter is defined to throw an exception if we attempt to modify the property. But I set that my vehicle cannot move and in the Update method it is stated if the vehicle cannot move then Velocity equal Vector3.zero. So each Update it is throwing an exception. Anyway great port of OpenSteer. Thanks.

ricardojmendez commented 9 years ago

PassiveVehicle is not meant to set its own speed, merely to be detected (or potentially to report on it).