- Home /
How can I keep my character controller from affecting a rigidbody?
I have a ship with a rigidbody that sails on the ocean. When I have my character controller on the ship and bump up against a wall, the ship acts like it runs into my character. This causes the ship slow down, turn, or generally move erratically depending on the speed of the ship, and what part of the ship the character is bumping.
I want the character to collide with the ship so that I can ride on it, but I don't want the ship to be influenced in any way by the character. How can I keep my character controller from affecting the ship's rigidbody?
If the ship is kinematic it will not be influenced by physics but will only move by scripted translation. This movement by AddForce will no longer work.
Thank you for your comment, meat5000. Unfortunately, making it kinematic is not much of an option, because I am making heavy use of the ship's rigidbody to add torque and force from dynamic waves. However, I did discover that the character controller has a flag called "detectCollisions". Setting this to false seems to have solved the problem.
Answer by ThePilgrim · Oct 14, 2013 at 08:15 PM
I set the CharacterController.detectCollisions flag to false, and it seems to have fixed the issue.
The character has a character motor script with moving platform enabled.
Your answer
Follow this Question
Related Questions
Physics goes crazy when rigidbody collides with moving character controller 0 Answers
Jittery movement when colliding (sliding) against curved mesh collider 0 Answers
Limiting rigidbody physics influence on another rigidbody 0 Answers
Ragdoll driven game 1 Answer
Character Controller with rigidbody 2 Answers