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
public ModelPhysics()
No results match this filter.
Methods
Showing 1 methods
public void CopyBonesFrom(Sandbox.SkinnedModelRenderer source, bool teleport)
Copy the bone positions and velocities from a different SkinnedModelRenderer
No results match this filter.
Properties
Showing 13 properties
public System.Collections.Generic.List`1<Sandbox.ModelPhysics.Body> Sandbox.ModelPhysics.Bodies { get; set; }
Networked list of bodies.
public bool Sandbox.ModelPhysics.IgnoreRoot { get; set; }
If true, the root physics body will not drive this component's transform.
public System.Collections.Generic.List`1<Sandbox.ModelPhysics.Joint> Sandbox.ModelPhysics.Joints { get; set; }
Networked list of joints.
public Sandbox.PhysicsLock Sandbox.ModelPhysics.Locking { get; set; }
Rigidbody locking applied to all bodies.
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 Sandbox.PhysicsGroup Sandbox.ModelPhysics.PhysicsGroup { get; set; }Obsolete
Obsolete: No longer in use
public bool Sandbox.ModelPhysics.PhysicsWereCreated { get; set; }
public Sandbox.SkinnedModelRenderer Sandbox.ModelPhysics.Renderer { get; set; }
The renderer that receives transform updates from physics bodies.
public Sandbox.RigidbodyFlags Sandbox.ModelPhysics.RigidbodyFlags { get; set; }
Rigidbody flags applied to all bodies.
public bool Sandbox.ModelPhysics.StartAsleep { get; set; }
All bodies will be put to sleep on start.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.ModelPhysics |