GamePhysicsCookbook icon indicating copy to clipboard operation
GamePhysicsCookbook copied to clipboard

ModelPlane doesn't modify the plane's normal

Open DragoniteSpam opened this issue 1 year ago • 0 comments

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.

DragoniteSpam avatar Jan 23 '23 05:01 DragoniteSpam