Rotating kinematic rigidbody at run time(2D sidescrolling project)
I am new to unity3d. In my project, I have a vehicle and a gun on top of it. Both are rigid-bodies. I want gun to be rotated using up and down key when vehicle is moving. For this I set isKinematic property of gun to false and also made gun parent of vehicle, so that it should stick with vehicle. Problem is when vehicle is moving, I cant rotate gun. It is rotating only when velocity of vehicle is zero. Please suggest any solution.Thank you.
Your answer
Follow this Question
Related Questions
step 10 space shooter asteroid random rotation not working 4 Answers
Problem with Rigidbody.rotation and AddTorque() being together 0 Answers
Moving a rigidbody in local space with transform.TransformPoint has unexpected results. 1 Answer
AddRigidBody Script Error 1 Answer
My players(cubes) passing through the ball and wols but little... Help please :) 0 Answers