Colliders not working when rotating

Hi. I am trying to make an object that has a script attached that rotates it. I want it to be able to colide with objects and push them around but it seems to just go right through the object. I have tried making it static, trigger, ect and can’t seem to find a solution.

Good day.

Does the object have a RigidBody Component?



Use this to rotate a rigidbody and still have it respond to physics

Modifying rotation directly is the same as modifying position. It teleports and misses out essential steps of collision. MoveRotation and MovePosition address this by working out if any collisions occured between movements.