Hey fellas,
Having two problems which I think are related:
I have a character for a 2D platformer and when he walks into a crate (rigidbody) it will knock it back which is fine but if the character keeps moving forward it will push the crate again without actually touching it. My colliders are properly sized etc so im thinking that maybe its out of sync with the character model once I start moving?
And the other problem is I have falling rocks that explode on impact with the player or the ground. And they work fine in going down etc but when the player walks near them they begin being pushed up into the air without actually touching them at all as if locked in a sort of telekenesis. Once again the colliders are all sized but yeh I have no idea lol
Thanks in advance for any help people can give me will be muchly appreciated.
Cheers, Ian
Hi, welcome to the forum!
Are you using the Update function rather than FixedUpdate for adding forces to the rigidbody? You generally get problems if you don’t use FixedUpdate.
I switched to FixedUpdate like you recommended and that immediatley fixed the first problem the 2nd problem isn’t as bad now, but the falling rocks sometimes track the player (not supposed to) and lose thier trajectory without touching the player still.
I tried to fix it by making iskinematic = true until the rock is within a distance < 1 from the player or the ground then make iskinematic = false. No luck though.
Cheers for the advice though Andeee only started learning unity a few weeks ago and am loving it.
I imagine you’re using a CharacterController and applying forces to the rocks with OnControllerColliderHit. If so, can you post what code you have in this function? It might be that the force applied to the rocks is in the wrong direction for some reason.
was able to fix it 
After a few frustrating attempts I deleted my character and re-added all components in a different order and worked perfectly.
Cheers for the help mate!