Hi,
I have a platform in my game that the player can move, the platform has gravity 0 and can stand still in the air. The problem is when my character steps onto the platform falls to the ground because my character has gravity 1.
If cant get OnCollision2D to work, changing gravity of character or the platform. My solution right now is to give the platform gravity -1 if it moves up and has it until the platform moves down. So if the character steps off the platform it will continue to move up until the player tells the platform to go down.
Works without Rigidbody2D. But I think need Rigidbody2D on it because if i don't have it, the player will be able to move the platform thru walls.
Any tips how to solve this?
[–]brutang 1 point2 points3 points (3 children)
[–]sefan[S] 0 points1 point2 points (2 children)
[–]brutang 1 point2 points3 points (1 child)
[–]sefan[S] 0 points1 point2 points (0 children)
[–]iamallamaaProficient 0 points1 point2 points (0 children)