s&box docs

public sealed class Sandbox.ModelPhysics : Sandbox.Component

Physics for a model. This is primarily used for ragdolls and other physics driven models, otherwise you should be using a Rigidbody.

Constructors

Showing 1 constructors

Methods

Showing 1 methods

public void CopyBonesFrom(Sandbox.SkinnedModelRenderer source, bool teleport)

Copy the bone positions and velocities from a different SkinnedModelRenderer

Properties

Showing 13 properties

public bool Sandbox.ModelPhysics.IgnoreRoot { get; set; }

If true, the root physics body will not drive this component's transform.

public float Sandbox.ModelPhysics.Mass { get; set; }

Returns the total mass of every `Sandbox.Rigidbody`

public Vector3 Sandbox.ModelPhysics.MassCenter { get; set; }

Returns the center of mass of every `Sandbox.Rigidbody` in world-space

public virtual sealed Sandbox.Model Sandbox.ModelPhysics.Model { get; set; }

The model used to generate physics bodies, collision shapes, and joints.

public bool Sandbox.ModelPhysics.MotionEnabled { get; set; }

Enable to drive renderer from physics, disable to drive physics from renderer.

public bool Sandbox.ModelPhysics.PhysicsWereCreated { get; set; }

public bool Sandbox.ModelPhysics.StartAsleep { get; set; }

All bodies will be put to sleep on start.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.ModelPhysics

On this page