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

Custom Forward/Up vectors, specify allowed rotation axes #28

Closed rattuscz closed 8 years ago

rattuscz commented 9 years ago

So this allowes me to setup 2D project with forward as Vector3.up and up vector as Vector3.back With only Z axis allowed for rotation it correctly rotates the sprites.

Without changing these, the behavior should be the same as before changes - just Slerp is done on Quaternion not on the direction vector.

One major thing to still do is have the Up/Forward vectors as global options. Now it's needed to be set on each DetectableObject separately.. ( managable by prefabs I guess )

LordSharpe commented 9 years ago

I've tested this on my 2D project, works well.

ricardojmendez commented 9 years ago

Thanks for confirming @LordSharpe. I haven't had a breather to test and integrate myself, but having external confirmation helps assure others who may want to try it.

Cheers!

pjohalloran commented 8 years ago

Are you planning on merging this in? Looks useful for 2D work.

ricardojmendez commented 8 years ago

Closing, as I've merged #39 which has a different 2D support implementation on independent behaviors.