sbox-issues
sbox-issues copied to clipboard
FindClosestPoint method for Physics/Triangle Meshes
For?
S&Box
What can't you do?
Use PhysicsBody.FindClosestPoint
to find the closest point of a collision model that is not convex.
How would you like it to work?
Basically just calling PhysicsBody.FindClosestPoint
and having it actually work.
That, or some alternative method meant specifically for meshes.
What have you tried?
PhysicsBody.FindClosestPoint
but it does not work.
Additional context
This is important for my gravity system as it would greatly simplify the work design-wise. Efficiency is not much a concern as the method is only being called once per fixed update and I can use a simplified yet still concave mesh.