API ReferenceSandbox
public sealed struct Sandbox.SceneTrace
Methods
Showing 50 methods
public Sandbox.SceneTrace HitTriggers()
Hit Triggers
public Sandbox.SceneTrace HitTriggersOnly()
Hit Only Triggers
public Sandbox.SceneTrace IgnoreDynamic()
Do not hit dynamic objects
public Sandbox.SceneTrace IgnoreGameObject(Sandbox.GameObject obj)
Do not hit this object
public Sandbox.SceneTrace IgnoreGameObjectHierarchy(Sandbox.GameObject obj)
Do not hit this object
public Sandbox.SceneTrace IgnoreKeyframed()
Do not hit keyframed objects
public Sandbox.SceneTrace IgnoreStatic()
Do not hit static objects
public Sandbox.SceneTrace Radius(float radius)
Makes this trace a sphere of given radius.
public Sandbox.SceneTrace Rotated(Rotation rotation)
Makes this a rotated trace, for tracing rotated boxes and capsules.
public Sandbox.SceneTraceResult Run()
Run the trace and return the result. The result will return the first hit.
public System.Collections.Generic.IEnumerable`1<Sandbox.SceneTraceResult> RunAll()
Run the trace and record everything we hit along the way. The result will be an array of hits.
public Sandbox.SceneTrace UseHitboxes(bool hit = True)
Should we hit hitboxes
Parameters
hit: Default: True
public Sandbox.SceneTrace UseHitPosition(bool enabled = True)
Should we compute hit position.
Parameters
enabled: Default: True
public Sandbox.SceneTrace UsePhysicsWorld(bool hit = True)
Should we hit physics objects?
Parameters
hit: Default: True
public Sandbox.SceneTrace WithTag(string tag)
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.SceneTrace |