- Home /
Question by
pri0ritize · Nov 11, 2016 at 09:17 AM ·
rigidbodyprojectile
Quaternion.LookRotation giving strange output
So...I'm trying to rotate my transform so it will align itself to the direction of motion.
In the past I've simply used
projectile.transform.rotation = Quaternion.LookRotation(projectileRB.velocity);
and had the expected output. Now, I'm getting rotation around a different axis than I expect and it breaks the functionality of my projectile mechanics. Has anyone encountered this?
Comment
Your answer
Follow this Question
Related Questions
Instantiating projectile object is affecting the movement of instantiater 1 Answer
Shooting a cannonball. 6 Answers
Increase velocity without changing trajectory 1 Answer
Collision detection for Arrows and Melee. How to properly setup physics/collision? 3 Answers
Objects Instantiating at wrong position 3 Answers