Moveing through Plane changes velocity
Hello,
I'm trying to make similar platform mechanics as in Super Smash Bros. In other words I'm trying to make a one way collider. You can jump through the platform from beneath but it collides if you're on top of the platform. For this I want to use the behaviour of a Plane and the fact that it is rendered only on one side.
As you can see in the gif it works fine except that as soon as the CapsuleCollider of my character entered the plane halfway my characters velocity rises (I get the same effect when the platform isn't rotated and I jump through it).
What I tried so far:
Using a CharacterController instead of a Rigidbody
Try different Colliders and 3D models
Move with manipulating the velocity directly
Move with AddForce and different ForceModes
The game will be played online with multiple players, so I also couldn't think of a good way to use Physics.IgnoreCollision(). And because it's in 3D and not in 2D I also can't use the PlatformEffector.
I've searched the whole internet for this issue but I couldn't find any solutions. This is at least something I found. It simply removes the faces of a MeshCollider that are not needed. But with this I've got the exact same problem as showed in the gif. (Well probably because it produces the same Collider as the one which is used for a Plane Object).
I'll be glad for any ideas, hints and solutions! Thank you in advance :)
But you're not jumping though it, you're moving horizontally. Could you show us a video of the vertical behavior (even though you mentioned it was the same)?
Your answer
Follow this Question
Related Questions
Car will only turn right (& ignored collders) 0 Answers
Grasping an object with a robotic arm 1 Answer
OnCollisionEnter works, but IgnoreCollision does not 0 Answers
Bounce, gravity and velocity 1 Answer