- Home /
Character Controler Localising movement and gravity
Hi Im trying to set up a system where a character can walk around a room which is moving and also may be rotated in any direction. I'm using the default character controller [FPS] and running into some problems.
I currently have the character as a child of the room and with moving platform disabled it seams to stop any inertial transfer. But the gravity seams to be fixed to "scene" down instead of "room" down so does the character controller capsule. Im not very good at deciphering other peoples code at the best of times when its in c# so it being written in Java is making it a little hard to find what I want.
Basically I want to have all aspects of the character controller localised to the "room" object which the character is a child of.
Answer by Ben Holmes · Apr 26, 2011 at 06:35 PM
the gravity that Unity physics uses is universal so it will always be "fixed to the scene". What you should do is calculate your own gravity based on the rotation of the room.
edit
to make sure unity physics doesn't take over for you, you need to turn off gravity in the character controller when you start using your own.
Your answer
Follow this Question
Related Questions
Gravity for my AI 0 Answers
How reliable are isGrounded checks? 1 Answer
Make a Platform push a character controller? 2 Answers