GamePhysicsCookbook
GamePhysicsCookbook copied to clipboard
ModelPlane doesn't modify the plane's normal
In the ModelPlane function, the plane's normal is transformed by the model's inverse world matrix as needed, but the distance from origin isn't - eg, take a point on the plane, multiply it by the inverse world matrix, and dot it against the transformed normal to get the transformed distance.