How to modify position of a collider component in the scene view?

I’ve used Unity for years but could never figure this one out:
How do I translate a collider in the scene view interactively using a move gizmo?. Something similar to this:

If I select a gameObject and start dragging the move gizmo around - it modifies the gameobject position. If I select the “Edit Collider” button on components like the capsule collider - I can only modify the radius and height but not the position.

So…yeah. Is there a way for me to do this interactively? Is manually typing values in really the only way? Is there some great script that adds this? Appreciate the help

A collider doesn’t have its own transform. You need to change the Transform component (for authoring) which is what the move gizmo does.

Editing a collider allows you to change its geometry which doesn’t include a transform. If you want it to be offset from something then it’d need to be on a child GameObject but again, you’d be modifying that child GameObject Transform again using the same gizmos.

Technically a Collider is attached to a Rigidbody but the Rigidbody (when authoring) will defer to any Transform changes too so the same thing applies.

1 Like