s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Components
ModelPhysics
chevron_left
Components
class
ModelPhysics
search
Constructors
functions
ModelPhysics
Properties
data_object
Bodies
data_object
IgnoreRoot
data_object
Joints
data_object
Locking
data_object
Mass
data_object
MassCenter
data_object
Model
data_object
MotionEnabled
remove_circle
PhysicsGroup
data_object
PhysicsWereCreated
data_object
Renderer
data_object
RigidbodyFlags
data_object
StartAsleep
Methods
functions
CopyBonesFrom
ModelPhysics
Physics for a model. This is primarily used for ragdolls and other physics driven models, otherwise you should be using a Rigidbody.
class
Sandbox
.
account_tree
extends
Component
sealed
Sandbox.Engine
build
Constructors
1
ModelPhysics
(
)
data_object
Properties
13
Bodies
List`1
Networked list of bodies.
IgnoreRoot
bool
If true, the root physics body will not drive this component's transform.
Joints
List`1
Networked list of joints.
Locking
PhysicsLock
Rigidbody locking applied to all bodies.
Mass
float
Returns the total mass of every Sandbox.Rigidbody
MassCenter
Vector3
Returns the center of mass of every Sandbox.Rigidbody in world-space
Model
Model
The model used to generate physics bodies, collision shapes, and joints.
MotionEnabled
bool
Enable to drive renderer from physics, disable to drive physics from renderer.
PhysicsGroup
obsolete
PhysicsGroup
PhysicsWereCreated
bool
Renderer
SkinnedModelRenderer
The renderer that receives transform updates from physics bodies.
RigidbodyFlags
RigidbodyFlags
Rigidbody flags applied to all bodies.
StartAsleep
bool
All bodies will be put to sleep on start.
functions
Methods
1
CopyBonesFrom
(
source
,
teleport
)
Copy the bone positions and velocities from a different SkinnedModelRenderer
Inheritance
Component
ModelPhysics
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.