Hi, i have problem with physics, i have animated a cylinder that spins around and the problem is that sometimes it looks like its just goes through the ball and its not pushing the ball of sometimes it works sometimes it doesnt [i spotted that usually first time when it hits collides with ball it goes through the ball but second time it hits and the ball gets pushed
I will attach video
Does anyone know how to solve this physics problem ?
Thanks!
If you are rotating it with non-physics system methods, it might be just that you are “teleporting” your pole on top of sphere. Or the pole might be rotating too fast?
Im using unity animation to animate all i did is just made frames like to rotate, i tried adding rigidbody to the pole and also changing collider and still same problem.
If you added rigidbody, what are you using to rotate the pole?
Is the pole object kinematic and animated or not? I would advice against using animation if the sphere is moved by physics.
A bit more details would help, I’m just guessing, only thing I see you say you are using “animation to animate all” and that doesn’t tell much to me :(.
I’m using unity animation to animate the pole but I’m using physics to move the spehere, the pole currently doesn’t have rigid body I tried adding it , I tried changing it to kinematic and also changing the mass but its same problem
i3artyy2222:
Hi again, instead of using animation, you could create a simple script for pole, make it rotate using Rigidbody.AddTorque maybe?
Or alternatively did you try changing Animator / Animation component update mode to “Animate Physics”?
If you are using animation system to animate pole and then sphere is under control of physics system, they won’t mix well most likely, but I haven’t tested how these settings work in this specific case.