public sealed class Sandbox.PhysicsShape
Represents a basic, convex shape. A PhysicsBody consists of one or more of these.
Methods
Showing 11 methods
public bool AddTag(string tag)Obsolete
Add a tag to this shape.
Obsolete: Use Tags
public bool ClearTags()Obsolete
Clear all tags from this shape.
Obsolete: Use Tags
public void DisableAllCollision()
Disable contact, trace and touch
public void EnableAllCollision()
Enable contact, trace and touch
public bool HasTag(string tag)Obsolete
Does this shape have a specific tag?
Obsolete: Use Tags
public void Remove()
Remove this shape. After calling this the shape should be considered released and not used again.
public bool RemoveTag(string tag)Obsolete
Remove a tag from this shape.
Obsolete: Use Tags
public void Triangulate(Vector3[] positions, uint[] indices)
Triangulate this shape.
No results match this filter.
Properties
Showing 20 properties
public Sandbox.PhysicsBody Sandbox.PhysicsShape.Body { get; set; }
The physics body we belong to.
public Capsule Sandbox.PhysicsShape.Capsule { get; set; }
Get capsule properties if we're a capsule type
public Sandbox.Collider Sandbox.PhysicsShape.Collider { get; set; }
The collider object that created / owns this shape
public bool Sandbox.PhysicsShape.EnableSolidCollisions { get; set; }
Controls whether this shape has solid collisions.
public bool Sandbox.PhysicsShape.EnableTouch { get; set; }
Controls whether this shape can fire touch events for its owning entity. (Entity.StartTouch, Touch and EndTouch)
public bool Sandbox.PhysicsShape.EnableTouchPersists { get; set; }
Controls whether this shape can fire continuous touch events for its owning entity (i.e. calling Entity.Touch every frame)
public float Sandbox.PhysicsShape.Friction { get; set; }
The friction value
public bool Sandbox.PhysicsShape.IsCapsuleShape { get; set; }
Is this a CapsuleShape
public bool Sandbox.PhysicsShape.IsHeightfieldShape { get; set; }
Is this a HeightfieldShape
public bool Sandbox.PhysicsShape.IsHullShape { get; set; }
Is this a HullShape
public bool Sandbox.PhysicsShape.IsMeshShape { get; set; }
Is this a MeshShape
public bool Sandbox.PhysicsShape.IsSphereShape { get; set; }
Is this a SphereShape
public bool Sandbox.PhysicsShape.IsTrigger { get; set; }
This is a trigger (!)
public Vector3 Sandbox.PhysicsShape.Scale { get; set; }Obsolete
Obsolete: This API member is obsolete.
public Sandbox.Sphere Sandbox.PhysicsShape.Sphere { get; set; }
Get sphere properties if we're a sphere type
public Sandbox.Surface Sandbox.PhysicsShape.Surface { get; set; }
public string Sandbox.PhysicsShape.SurfaceMaterial { get; set; }
Controls physical properties of this shape.
public Sandbox.Surface[] Sandbox.PhysicsShape.Surfaces { get; set; }
Multiple surfaces referenced by mesh or heightfield collision.
public Vector3 Sandbox.PhysicsShape.SurfaceVelocity { get; set; }
Set the local velocity of the surface so things can slide along it, like a conveyor belt
public Sandbox.ITagSet Sandbox.PhysicsShape.Tags { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.PhysicsShape |