API ReferenceSandbox.Engine.Utility.RayTrace
MeshTraceRequestclass
object→MeshTraceRequest
Methods8
Showing 8 methods
public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest.Result Run()
Run the trace and return the result. The result will return the first hit.
public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest.Result[] RunAll()
public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithAllTags(string[] tags)
Only return scene objects with all of these tags
| Parameter | Type | Description |
|---|---|---|
| tags | string[] | — |
public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithAnyTags(string[] tags)
Only return scene objects with any of these tags
| Parameter | Type | Description |
|---|---|---|
| tags | string[] | — |
public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithoutTags(string[] tags)
Only return scene objects without any of these tags
| Parameter | Type | Description |
|---|---|---|
| tags | string[] | — |
public Sandbox.Engine.Utility.RayTrace.MeshTraceRequest WithTag(string tag)
Only return scene objects with this tag. Subsequent calls to this will add multiple requirements and they'll all have to be met (ie, the scene object will need all tags).
| Parameter | Type | Description |
|---|---|---|
| tag | string | — |
No results match this filter.