Question by
Trigary · Jan 29, 2016 at 01:10 PM ·
rigidbody2dvelocityvector2magnituderotate-around
Rotating a velocity vector while keeping the magnitude
Hi!
I want to rotate an object's velocity, a Vector2, by specified angles, while keeping the speed of that object. Rotating the object and then adding the old speed to transform.up isn't the solution I am looking for.
Just some info: the object's "up" is set to the direction it goes and the object also bounces off walls, making it rotate randomly. This vector rotating is needed so players are able to rotate it's velocity a bit to control where it goes.
Comment