# Sandbox.ModelPhysics

Physics for a model. This is primarily used for ragdolls and other physics driven models, otherwise you should be using a Rigidbody.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Component](/api/Sandbox.Component)
- Modifiers: sealed

## Constructors

- [`ModelPhysics`](/api/Sandbox.ModelPhysics/.ctor)

## Properties

- [`Bodies`](/api/Sandbox.ModelPhysics/Bodies): Networked list of bodies.
- [`IgnoreRoot`](/api/Sandbox.ModelPhysics/IgnoreRoot): If true, the root physics body will not drive this component's transform.
- [`Joints`](/api/Sandbox.ModelPhysics/Joints): Networked list of joints.
- [`Locking`](/api/Sandbox.ModelPhysics/Locking): Rigidbody locking applied to all bodies.
- [`Mass`](/api/Sandbox.ModelPhysics/Mass): Returns the total mass of every [Sandbox.Rigidbody](/api/Sandbox.Rigidbody)
- [`MassCenter`](/api/Sandbox.ModelPhysics/MassCenter): Returns the center of mass of every [Sandbox.Rigidbody](/api/Sandbox.Rigidbody) in world-space
- [`Model`](/api/Sandbox.ModelPhysics/Model): The model used to generate physics bodies, collision shapes, and joints.
- [`MotionEnabled`](/api/Sandbox.ModelPhysics/MotionEnabled): Enable to drive renderer from physics, disable to drive physics from renderer.
- [`PhysicsGroup`](/api/Sandbox.ModelPhysics/PhysicsGroup)
- [`PhysicsWereCreated`](/api/Sandbox.ModelPhysics/PhysicsWereCreated)
- [`Renderer`](/api/Sandbox.ModelPhysics/Renderer): The renderer that receives transform updates from physics bodies.
- [`RigidbodyFlags`](/api/Sandbox.ModelPhysics/RigidbodyFlags): Rigidbody flags applied to all bodies.
- [`StartAsleep`](/api/Sandbox.ModelPhysics/StartAsleep): All bodies will be put to sleep on start.

## Methods

- [`CopyBonesFrom`](/api/Sandbox.ModelPhysics/CopyBonesFrom): Copy the bone positions and velocities from a different SkinnedModelRenderer
