- Home /
Rigidbody question
Hi I'm making a Top-Down space game and i have an enemy spaceship. I added a Rigidbody to the spaceship because it was going through walls. I froze all the rotations and froze the position on the x-axis, but when i shoot it it moves backward, How do i stop it from moving backward so when i shoot it it stays still?
Answer by robertmathew · Apr 22, 2011 at 03:44 AM
rigidbody.isKinematic = true;
rigidbody.freezeRotation = true;
i do not know whether it will solve the problem any way try this
Thanks but i just figures it out i added 10000 drag to it and 10000 mass to it but thanks anyway.
Your answer
Follow this Question
Related Questions
Freeze (lock) FPS position while still able to 'look around' 0 Answers
Freeze rigidbody position without affecting rotation - please help! 1 Answer
Move object with mouse without passing through colliders 0 Answers
Making something move relative to something else, but slower/shorter ? 2 Answers
Guided missile help c# 1 Answer