Mario Kart Collision Post 1

Mario Kart Collision Post 1

Feb 26, 2019. | By: Evan Diamond
1 min

The first post in making collision for mario kart in DirectX12

Creating a box collider 1

  • DirectX12 already has implementation for an orientated bounding box collider.

  • Instantiated this collider in the PhysModel class with the centre, size, and rotation being the position, size, and rotation of the parent GameObject. However the centre of the collider was not at the centre of the mesh.

  • To initially fix this an external tool was used to get the vertices of the mesh in a vector in PhysModel (this was originally intended for track collision). Then a linear search was used to find the top and bottom most corners of the mesh from the vertices vector which could then be averaged to find the centre of the mesh and one corner was used to find the size of the mesh.

About

Gamers developing new games.

Social Links

Our Bunker

University of the West of England,
Frenchay Campus, Bristol, BS16 1QY,
United Kingdom.