Player can't move physics objects

Hi again. I wasn’t sure quite where to post this, but I’m having another little problem.

I’ve created a ball that I want the player to push around the scene. The ball drops into the scene and rolls fine… but if I try to walk up and push it… it might as well be hard as a rock. Any suggestions

Also, are cloth physics usable in the free version? I didn’t think they were but I see the options menu right there and the componant gets added so I’m not sure.

Hi there,

I’m having the same problem as you and would love to know a work-around. You can avoid this problem by removing the Character Controller Component (which I’m assuming your character has) and replacing it by a RigidBody, though in most cases (including mine), this isn’t exactly the most elegant/ desirable solution.
So bump for great justice!

-Patrick

OnControllerColliderHit is a special function for Character Controllers that lets you apply physics to collided objects

Hey Vicenti,

I did find that function earlier, but forgot to mention it. However, I doubt that solution would work for the OP, as the object in question is a ball. The function described there makes the hit object move in the same direction as the player, but it makes it work in a fashion similar to a ‘Freeze Rotation’ Rigidbody object, as it doesn’t take the position of the collision into account. I.e.: When the player walks against the side of a long, stretched out cube, you’d expect the cube to rotate, pushing the point of collision forward more than the other side of the cube. I assumed this is also the OP’s intention. =) Thanks for your reply though! Now if only there was something along the lines of an ApplyForcesLikeRigidbody boolean…

There’s a Rigidbody.ApplyForceAtPoint or some such function…

Ah!

AddForceAtPosition

Addforce at the collision position and see if that is what you’re looking for.

Vicenti, has anyone ever told you you’re amazing? :wink: No word from the OP yet, but this was exactly what I was looking for, thanks! =D

Oh, I know I’m amazing, but it’s always nice to hear it again.

xD

Thanks, glad you got it working. :slight_smile:

after making a script code like from the instruction guide (sharpshooter) the player never moved like showed in the video guied,someone please help me

This post is 9 years old! But anyway, please let us know how we can help. Which instruction guide are you talking about? Please share the link and show the code that you are using.