- Home /
Pinwheel prevents player by moving
I have got a set of rotating pinwheels on which a ball controlled by the player must jump. When it touches the wall coming against it, it responses only by moving along this wall nor in direction of the pinwheel's center either an external point. I tried different solutions, like assagning to the player the same velocity of the wall (other.rigidbody.velocity = rigidbody.velocity ), but the only thing that has been working is adding a force around the forward direction of the wall( other.rigidbody.AddForce ( transform.forward * speed ) ). The problem is I don't understand why this happens. I think the player can't divide with it cause of it hasn't got enough starting thrust, just like it is prisoned by the rotating motion of the pinwheel. But that is strange: the rotation is very slow and the player's movement very fast. Then if it was that, wouldn't velocity solution work all right? What do you think about that?