- Home /
Question by
zactanpeterson · Apr 21, 2019 at 09:17 AM ·
physics2d-platformerweapon
Rotating a sprite with it's velocity
I'm setting up a bow and arrow system like Terraria and I've found a way that works perfectly with 3d objects
void Update()
{
transform.rotation = Quaternion.LookRotation(rb.velocity);
}
but I can't get it to work with sprites, any suggestions?
Comment
Your answer

Follow this Question
Related Questions
PlatformerController: is inertia (Mario physics) possible ? 4 Answers
2D Physics game using sprites 0 Answers
Unity 2D platformer collider 1 Answer
2D moving platforms, physics issues 1 Answer
2D 360 degress platformer example needed 0 Answers