- Home /
how to make character controller push rididbodies
hi, i'm trying to make my player push a box, that box is a rigidbody , my player have rigidbody and characterController attached to him , but he never push the box , why?
Answer by NeilM0 · Sep 10, 2011 at 03:06 AM
Take a look at "CharacterController.OnControllerColliderHit" in the help file. It has a code sample that shows you how to push a rigidbody using the Character controller. The function is called every time it hits something, then you push that object forward if it's the correct type of object.
Answer by ScriptGirl · Jan 20, 2012 at 03:43 PM
I helped solve this right here! It has the full script. Have a look ;)
Your answer
Follow this Question
Related Questions
Character Controller and Kinematic Collision 1 Answer
Making a Character Controller push another Character Controller 3 Answers
Why is my push rigidbody script not effected by mass? 2 Answers
Making Colliders/Triggers or Rigidbodies move a Character Controller 5 Answers
Object push character controller? 1 Answer