Through code, I need the player to be able to slide off the rotating node (or a rotating platform).
Right now, the player just sits there.
Is there a simple way to do this?
Thanks!
1
This behavior is being caused because of the no-rotation constraint on the player. Since allowing the player to rotate is presumably not an option, here are a few things to try:
- Increase the mass of the player.
- Increase the friction on the PhysicsMaterial2Ds of the player and the block.
- In the block script, keep track of when the player has landed on top of the block. When rotating, if the player is on the box, apply a force on the player that is down and to the left (or right, if the block rotates right).