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

Support for 2D projects #26

Closed rattuscz closed 9 years ago

rattuscz commented 9 years ago

I've tried UnitySteer for 2D project, but even with AllowedMovementAxes setting, the sprites rotate around all axes which breaks the sprite orientation.

From my poking around it seems that few changes could make UnitySteer support 2D movement:

Is this doable or do you not plan to support 2d projects at all?

I will try to test it during the week and send pull request with the changes.

ricardojmendez commented 9 years ago

Hi,

I'm not doing any Unity 2D projects myself, so don't have a real test bed for that. I'd happily look at your pull requests, though.

If you're going to do something related to the forward vector, have a look at how the OrientationVelocity is assigned on AutonomousVehicle vs. Biped, since that'll help as a guideline of how to modify a vehicle's forward.