Hello
How can character physically affect other objects ?
for example when my 3d fps character which have character controller will collide with ball
the ball will start to roll like when i add rigidbody
sorry for my maybe newbie quiestion but i cannot find video or smth on this topic…
The rigidbody & collider of your gameobjects define physics. So if you have 2 gameobjects (whatever those gameobjects), each with a rigidbody and a collider, they will collide (unless they are on different layers and those different layer do not apply physics).
i tried to add rigidbody to gameobject with character controller but it didnt detect collisions with other objects…
Rigidbody and CharacterController are not intended for use together, as implied in the CharacterController API documentation.
You can instead us a Rigidbody player controller… there’s probably several hundred examples around the web, or it’s pretty easy to roll your own.
Word. You can throw a brick at the internet and the odds are it will hit a player controller script. I have never found one that is as truly universal as I’d like, but this one on the Unity Community Wiki is a workable place to start.
Interestingly, it is prefaced with this observation:
I’m not sure if I agree, and I wish the writer of that comment had said who it was that recommended using the character controller over the rigidbody version. I think it really does depend on the needs of your particular game/project.