- Home /
RigidBody and collision.contacts
Hey all !
I'm trying to re-invent the wheel once again for a 2.5D platformer.
I tried some things with the CharacterController but is only send the "sides" info, not if it's coliding left or right.
So now I'm working with RigidBody and the OnCollisionEnter() function
So thing is, all points returned by the collision.contacts are too specific. Here is what I have in game
the green box is the BoxColider
the red cubes are contact points from collision.contacts returned on collision from the RigidBody
As you can see, if I touch the wall, all the contacts points are still on the "ground" side.
If I jump :
I have point where I need them. But once I touch the ground I lose all left/right points from the returned array.
And nothing to know when the Box is touched on both sides.
Any idea ? or better methods ?
Thanks !
Your answer
Follow this Question
Related Questions
Apply explosive force to player at point of contact 3 Answers
Again about the platforms... 0 Answers
Why does my player fly through my barrier? 2 Answers
Advice for Intersecting Colliders 0 Answers
Object going through (or getting inside) another object 1 Answer