Spinning knive

Hello!

I have a knive which should be thrown by the player, so I did that through adding force to the knive, my question is, how can I make the knive spin while its flying through the air? Im looking forward to answers!

FishFace

i dont know how the other script is set up but,
you could use torque if youre already using forces to throw it this might work, better than transform.Rotate

this goes right after where you add the force
knife.rigidbody.AddTorque (10, 0, 0);

no, sadly that does not work, I want the knive spinning around its own x-axis very fast, thats because the player is having his hand around the bladfe of the knive and throwing it so, that it rotates, “AddTorque” does not make it spin around its x-axis very fast…could you maybe give me another tip? Thanks!

how about

knife.rigidbody.AddTorque(100,0,0);

or 600?

have u tried with transform.rotation() ?

tbh, think of it this way, Will the player ever notice if it is spinning? You could just use some art trickery like a blur or an actual spin animated texture to make it appear like it is spinning.

Its ok now, i found the easiest thing is just to do an animation of the rotating knive and then just let it play and toggle the animation speed while the knive is being thrown…so the problem is fixed…