- Home /
2D gun shooting and fliping
Hi guys i am trying to retro the game as a execercise. I am facing a problem about the movement of the gun.
So this is the game play video. https://youtu.be/F4qD2HanBL0
How do i play with the function AddForce or AddTorque in order to make my gun flip based on the angle of the gun?
Thank you so much!
Answer by toficofi · Mar 20, 2021 at 03:11 AM
You might be interested in AddForceAtPosition. You could add a force at the tip of the gun.
Your answer
Follow this Question
Related Questions
Mesh triangles and vertices, searching for adjacent triangle 1 Answer
Multiple coroutines starting from Update() freeze/crash Unity 0 Answers
Player dies when it Hits/crushes a block 2 Answers
variable from another script doesn't update 0 Answers
I want to move the camera by swiping horizontaly (Mobile Input). 1 Answer