"attach character (with character controller) to vehicle with physics(wheel colliders,rigidbody)" (21941)

Hi there

I have a vehicle, that is able to drive (wheel colliders/physics)

And I have a 3rd person Character that can move.

I disable the movement of the character, when I click on the vehicle and enable the vehicles driving system. I also parent the vehicle to the character.

My problem is that the Character does not move with the vehicle. If I delete the character controller of the character, then it does move with the vehicle…

What could I do?

  • Remove/Add the character controller?
  • Glue the character “better” to the vehicle?

sorry, double post. The new QA-System didn't list the answer.

hmm, why does the system not let me delete this question? It's a duplicate one.. Sure Will Goldstone could keep the points, but why is it not possible to delete the question..

2 Answers

2

" I also parent the vehicle to the character." do you mean you parent the character to the vehicle? have you tried disabling the character controller as a component temporarily?

as far as I've seen a character controller can not be disabled temporarily, because it does derivate from Rigidbody and not MonoBehaviour.

I mark your answer as answer, though it is not the answer. Because it seems many people look thru the questions. (The original version has 200 views less, than this question.

Please not, this is a duplicate question!