sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

FindClosestPoint method for Physics/Triangle Meshes

Open youarereadingthis opened this issue 6 months ago • 0 comments

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.

youarereadingthis avatar Aug 16 '24 21:08 youarereadingthis