Summary

Represents a set of <see cref="T:Sandbox.PhysicsBody">PhysicsBody</see> objects. Think ragdoll.

Properties

AngularDamping Sets Sandbox.PhysicsBody.AngularDamping on all bodies in this group.
AngularVelocity Sets Sandbox.PhysicsBody.AngularVelocity on all bodies of this group.
Bodies Returns all physics bodies that belong to this physics group.
BodyCount Returns amount of physics bodies that belong to this physics group.
Joints Any and all joints that are attached to any body in this group.
LinearDamping Sets Sandbox.PhysicsBody.LinearDamping on all bodies in this group.
Mass The total mass of all the <b>dynamic</b><see cref="T:Sandbox.PhysicsBody">PhysicsBodies</see> in this group. When setting the total mass, it will be set on each body proportionally to each of their old masses, i.e. if a body had 25% of previous total mass, it will have 25% of new total mass.
MassCenter Returns the center of mass for this group of physics bodies.
Pos Returns position of the first physics body of this group, or zero vector if it has none.
Sleeping Physics bodies automatically go to sleep after a certain amount of time of inactivity to save on performance. You can use this to wake the body up, or prematurely send it to sleep.
Velocity Sets Sandbox.PhysicsBody.Velocity on all bodies of this group.
World The world in which this group belongs

Methods

AddAngularVelocity
AddVelocity
ApplyAngularImpulse
ApplyImpulse
GetBody
RebuildMass Calls Sandbox.PhysicsBody.RebuildMass on all bodies of this group.
Remove Delete this group, and all of its bodies
SetSurface
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.