Hello Guest

Author Topic: Collision with extra data  (Read 740 times)

0 Members and 1 Guest are viewing this topic.


  • Member
  • Posts: 1
    • View Profile
Collision with extra data
« on: March 16, 2018, 12:42:52 AM »
I'm trying to set up a basic physics engine where the player bounces off of walls, but I don't know how to implement collisions with sloped surfaces.

Ideally I could set the surface to be sloped at any angle and have the player bounce accordingly, but when looking into collisions it appears there's no way to easily give extra data on collisions, which in this case would be the angle of the surface they are colliding with. I can calculate the correct bounce vector as long as I have that.

How would I go about doing this?