s&
box
News
Charts
Api
History
Wiki
Sign in through
STEAM
PhysicsBody
.
LinearDamping
Sandbox.Engine
Sandbox
.
list
Api Index
feed
PhysicsBody
class
PhysicsBody
Constructors
note_add
PhysicsBody
( world )
Properties
data_object
AngularDamping
data_object
AngularDrag
data_object
AngularVelocity
data_object
AutoSleep
data_object
BodyType
data_object
Density
data_object
DragEnabled
data_object
Enabled
data_object
EnableSolidCollisions
data_object
EnableTouch
data_object
EnableTouchPersists
data_object
EnableTraceAndQueries
data_object
GameObject
data_object
GravityEnabled
data_object
GravityScale
data_object
GroupIndex
data_object
GroupName
data_object
Inertia
data_object
InertiaRotation
data_object
LastWaterEffect
data_object
LinearDamping
data_object
LinearDrag
data_object
LocalMassCenter
data_object
Mass
data_object
MassCenter
data_object
MotionEnabled
data_object
Parent
data_object
PhysicsGroup
data_object
Position
data_object
Rotation
data_object
Scale
data_object
SelfOrParent
data_object
Shapes
data_object
Sleeping
data_object
SpeculativeContactEnabled
data_object
SurfaceMaterial
data_object
Transform
data_object
UseController
data_object
Velocity
data_object
World
Methods
code
AddBoxShape
( position, rotation, extent, rebuildMass )
code
AddCapsuleShape
( center, center2, radius, rebuildMass )
code
AddCloneShape
( shape )
code
AddHullShape
( position, rotation, points, rebuildMass )
code
AddHullShape
( position, rotation, points, rebuildMass )
code
AddMeshShape
( vertices, indices )
code
AddMeshShape
( vertices, indices )
code
AddSphereShape
( center, radius, rebuildMass )
code
ApplyAngularImpulse
( impulse )
code
ApplyForce
( force )
code
ApplyForceAt
( position, force )
code
ApplyImpulse
( impulse )
code
ApplyImpulseAt
( position, velocity )
code
ApplyTorque
( force )
code
CheckOverlap
( body )
code
CheckOverlap
( body, transform )
code
ClearForces
()
code
ClearShapes
()
code
ClearTorque
()
code
FindClosestPoint
( vec )
code
GetBounds
()
code
GetVelocityAtPoint
( point )
code
LocalPoint
( p )
code
MassCenterPoint
()
code
RebuildMass
()
code
Remove
()
code
SetMinSolverIterations
( minVelocityIterations, minPositionIterations )
code
WorldPoint
( p )
Extensions
code
GetEntity
<
T
>
()
code
GetEntity
()
LinearDamping
float
LinearDamping
{
get
;
set
;
}
Summary
Generic linear damping, i.e. how much the physics body will slow down on its own.
Return Value
float
output