class
ModelPhysics
public sealed class ModelPhysics : Component Physics for a model. This is primarily used for ragdolls and other physics driven models, otherwise you should be using a Rigidbody.
Constructors
ModelPhysics() Properties
| Name | Type | Description |
|---|---|---|
PhysicsGroup | PhysicsGroup | |
PhysicsWereCreated | Boolean | |
Model virtual | Model | The model used to generate physics bodies, collision shapes, and joints. |
Renderer | SkinnedModelRenderer | The renderer that receives transform updates from physics bodies. |
IgnoreRoot | Boolean | If true, the root physics body will not drive this component's transform. |
RigidbodyFlags | RigidbodyFlags | Rigidbody flags applied to all bodies. |
Locking | PhysicsLock | Rigidbody locking applied to all bodies. |
StartAsleep | Boolean | All bodies will be put to sleep on start. |
MotionEnabled | Boolean | Enable to drive renderer from physics, disable to drive physics from renderer. |
Mass | Single | Returns the total mass of every Rigidbody |
MassCenter | Vector3 | Returns the center of mass of every Rigidbody in world-space |
Bodies | List<Body> | Networked list of bodies. |
Joints | List<Joint> | Networked list of joints. |
Methods
Void CopyBonesFrom(SkinnedModelRenderer source, Boolean teleport) Copy the bone positions and velocities from a different SkinnedModelRenderer