s&
comment
news
apps
browse
insights
charts
code_blocks
dev
emoji_events
tech jam
log in
book
Documentation
quick_reference_all
Api Reference
browser_updated
Api Changes
Properties
AngularDamping
AngularDrag
AngularVelocity
AutoSleep
BodyType
Density
DragEnabled
EnableCollisionSounds
Enabled
EnableSolidCollisions
EnableTouch
EnableTouchPersists
GravityEnabled
GravityScale
GroupIndex
GroupName
Inertia
InertiaRotation
LastWaterEffect
LinearDamping
LinearDrag
LocalMassCenter
Locking
Mass
MassCenter
MotionEnabled
OnIntersectionEnd
OnIntersectionStart
OnIntersectionUpdate
OverrideMassCenter
Parent
PhysicsGroup
Position
Rotation
Scale
SelfOrParent
ShapeCount
Shapes
Sleeping
SpeculativeContactEnabled
Surface
SurfaceMaterial
Transform
UseController
Velocity
World
Methods
AddBoxShape
AddCapsuleShape
AddCloneShape
AddConeShape
AddCylinderShape
AddHeightFieldShape
AddHullShape
AddMeshShape
AddShape
AddSphereShape
ApplyAngularImpulse
ApplyForce
ApplyForceAt
ApplyImpulse
ApplyImpulseAt
ApplyTorque
CheckOverlap
ClearForces
ClearShapes
ClearTorque
FindClosestPoint
GetBounds
GetLerpedTransform
GetVelocityAtPoint
LocalPoint
MassCenterPoint
Move
RebuildMass
Remove
SmoothMove
SmoothRotate
WorldPoint
PhysicsBody
.Density
float
Density
{
get
;
set
;
}
Description
Returns average of densities for all physics shapes of this body. This is based on <see cref="P:Sandbox.PhysicsShape.SurfaceMaterial" /> of each shape.
Return
User Comments