Clamps a point to the surface or interior of an OBB. Reference: Closest Point on OBB to Point in Real-Time Collision Detection by Christer Ericson (chapter 5.1.4)
The clamped point result
The OBB
The point to clamp
out
Clamps a point to the surface or interior of an OBB. Reference: Closest Point on OBB to Point in Real-Time Collision Detection by Christer Ericson (chapter 5.1.4)