Summary

Represents a basic, convex shape. A <see cref="T:Sandbox.PhysicsBody">PhysicsBody</see> consists of one or more of these.

Properties

Body The physics body we belong to.
Capsule Get capsule properties if we're a capsule type
Collider The collider object that created / owns this shape
EnableSolidCollisions Controls whether this shape has solid collisions.
EnableTouch Controls whether this shape can fire touch events for its owning entity. (Entity.StartTouch, Touch and EndTouch)
EnableTouchPersists Controls whether this shape can fire continuous touch events for its owning entity (i.e. calling Entity.Touch every frame)
Friction The friction value
IsCapsuleShape Is this a CapsuleShape
IsHeightfieldShape Is this a HeightfieldShape
IsHullShape Is this a HullShape
IsMeshShape Is this a MeshShape
IsSphereShape Is this a SphereShape
IsTrigger This is a trigger (!)
Scale
Sphere Get sphere properties if we're a sphere type
Surface
SurfaceMaterial Controls physical properties of this shape.
Surfaces Multiple surfaces referenced by mesh or heightfield collision.
SurfaceVelocity Set the local velocity of the surface so things can slide along it, like a conveyor belt
Tags

Methods

AddTag
ClearTags Clear all tags from this shape.
DisableAllCollision Disable contact, trace and touch
EnableAllCollision Enable contact, trace and touch
HasTag
Remove Remove this shape. After calling this the shape should be considered released and not used again.
RemoveTag
Triangulate
UpdateHull
UpdateMesh
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.