mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 08:18:20 -04:00
21 lines
418 B
C#
21 lines
418 B
C#
|
|
namespace Sandbox;
|
|
|
|
public partial class Model
|
|
{
|
|
/// <summary>
|
|
/// Total bounds of all the meshes.
|
|
/// </summary>
|
|
public BBox Bounds => native.GetMeshBounds();
|
|
|
|
/// <summary>
|
|
/// Total bounds of all the physics shapes.
|
|
/// </summary>
|
|
public BBox PhysicsBounds => native.GetPhysicsBounds();
|
|
|
|
/// <summary>
|
|
/// Render view bounds.
|
|
/// </summary>
|
|
public BBox RenderBounds => native.GetModelRenderBounds();
|
|
}
|