mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 08:18:20 -04:00
23 lines
392 B
C#
23 lines
392 B
C#
namespace Sandbox;
|
|
|
|
public sealed partial class Model : Resource
|
|
{
|
|
PhysicsGroupDescription _physics;
|
|
|
|
public PhysicsGroupDescription Physics
|
|
{
|
|
get
|
|
{
|
|
if ( _physics is not null )
|
|
return _physics;
|
|
|
|
var container = native.GetPhysicsContainer();
|
|
if ( container.IsNull ) return null;
|
|
|
|
_physics = PhysicsGroupDescription.FromNative( container );
|
|
return _physics;
|
|
}
|
|
}
|
|
}
|
|
|