I am making a 2D platformer (it's actually 3D, but with an orthographic camera)and I would like to have jump through platforms. I have accomplished this somewhat by putting the sprite of the platform behind the player, but with a upwards-facing plane at the top of the sprite, at the player's z-position. However, the player sometimes doesn't go through the platform when he attempts to jump through it, and instead is bounced back, or is jerked up unnaturally. Does anyone have a script to make it so the collision plane is deactivated when the player is below it, and activated when he is above it?
I am using a modified First Person Controller as the player. I know the way I'm doing things isn't the most effective, but it makes the most sense to me.
Also, if possible, I would like to have this feature working for sloped planes as well.
↧