public sealed struct Sandbox.PhysicsTraceBuilder
Methods
Showing 46 methods
public Sandbox.PhysicsTraceBuilder HitTriggers()
Include triggers in the trace
public Sandbox.PhysicsTraceBuilder HitTriggersOnly()
Only hit triggers
public Sandbox.PhysicsTraceBuilder IgnoreDynamic()
Ignore dynamic objects in the trace
public Sandbox.PhysicsTraceBuilder IgnoreKeyframed()
Ignore keyframed objects in the trace
public Sandbox.PhysicsTraceBuilder IgnoreStatic()
Ignore static objects in the trace
public Sandbox.PhysicsTraceBuilder Radius(float radius)
Makes this trace a sphere of given radius.
public Sandbox.PhysicsTraceBuilder Rotated(Rotation rotation)
Sets the start rotation of the trace request
public Sandbox.PhysicsTraceResult Run()
Run the trace and return the result. The result will return the first hit.
public Sandbox.PhysicsTraceResult RunAgainstBBox(BBox box, Transform transform)
Traces only against the given bounding box at the specified transform.
Parameters
box: The bounding box to test against.transform: Transform applied to the box.
Returns
The trace result.
public Sandbox.PhysicsTraceResult RunAgainstCapsule(Capsule capsule, Transform transform)
Traces only against the given capsule at the specified transform.
Parameters
capsule: The capsule to test against.transform: Transform applied to the capsule.
Returns
The trace result.
public Sandbox.PhysicsTraceResult RunAgainstSphere(Sandbox.Sphere sphere, Transform transform)
Traces only against the given sphere at the specified transform.
Parameters
sphere: The sphere to test against.transform: Transform applied to the sphere.
Returns
The trace result.
public Sandbox.PhysicsTraceResult[] RunAll()
Run the trace and return all hits as a result.
public Sandbox.PhysicsTraceBuilder UseHitPosition(bool enabled = True)
Compute hit position.
Parameters
enabled: Default: True
public Sandbox.PhysicsTraceBuilder WithoutTag(Sandbox.StringToken tag)
Only return without this tag
public Sandbox.PhysicsTraceBuilder WithTag(Sandbox.StringToken ident)
Only return entities with this tag. Subsequent calls to this will add multiple requirements and they'll all have to be met (ie, the entity will need all tags).
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.PhysicsTraceBuilder |