ModelPhysicsclass
Physics for a model. This is primarily used for ragdolls and other physics driven models, otherwise you should be using a Rigidbody.
Constructors1
Showing 1 constructors
public ModelPhysics()
No results match this filter.
Methods1
Showing 1 methods
public void CopyBonesFrom(Sandbox.SkinnedModelRenderer source, bool teleport)
Copy the bone positions and velocities from a different SkinnedModelRenderer
| Parameter | Type | Description |
|---|---|---|
| source | SkinnedModelRenderer | — |
| teleport | bool | — |
void—No results match this filter.
Properties13
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.
bool—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`
float—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.
bool—public Sandbox.PhysicsGroup Sandbox.ModelPhysics.PhysicsGroup { get; set; }
Obsolete: No longer in use
public bool Sandbox.ModelPhysics.PhysicsWereCreated { get; set; }
bool—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.
bool—No results match this filter.