#Seeing the bounds of a physicsCollider?

1 messages · Page 1 of 1 (latest)

quartz jewel
#

I'm trying to visually see the bounds of my entity which has a physicsCollider component on it. What are some ways I can see it?

toxic mica
#

Or DrawColliders on the same component

#

Not sure which one you want

simple terrace
#

If you don't want to use the debug display you can get a pointer to the collider from PhysicsCollider and then call CalculateAABB

var collider = physicsCollider.ColliderPtr;
var aabb = collider->CalculateAABB();

Note that it needs unsafe context
Then you could use any gizmo function to draw it

quartz jewel
toxic mica
#

Just that.

boreal steeple
#

Does this work for viewing overlapspherecasts?