- Home /
Character-controller offset during gameplay
I'm making a Mars Rover simulator and have had some problems with keeping the character controller in place during GamePlay.
Currently the hierarchy is setup with main GameObject (RoverPrefab) containing all animations, a character controller and the SampleMoveScript. The child of RoverPrefab contains the RigidBody tags for suspension, which seems to offset the Character-controller slowly and continuously during GamePLay.
Any suggestions on the hierarchy setup with a CharacterController and a RigidBody tag, or similar experiences?
Rigidbody tag? do you mean you attached a Rigidbody component onto a child object? That will cause the problem because you should not put a non kinematic rigidbody as child of another (a CharacterController is quite similar to rigidbody) If you need the rigidbody because of collision detection make it kinematic. Otherwise the child gameobject with rigidbody would have this self movement.
Sorry, you are correct, I meant Rigidbody component which is on a child object of my GameObject containing a CharacterController.
I made the rigidbody kinematic, but I'm not getting the results I'm going for (simulating suspension on and object which has a CharacterController).
Your answer
