How to get the model of the collision of an entity via script?

Like this pic above shows, there is a box-like( yellow color) collision on the red box entity. How can I get the box-like collision’s model, shown as the yellow box, via script?

I tried it like,

this.entity.collision.model

But always got a null returned…

I think the yellow collision box is just a gizmo, like the scale gizmo in the picture, you can not get it.
But you can access its properties, like type, halfExtents etc.

For more information, see the api docs:
https://developer.playcanvas.com/en/api/pc.CollisionComponent.html

What are you trying to do with with the collision volume?

There isn’t a renderable model for the physics volumes at runtime. They are just rendered in the editor for visualisation reasons.