Body |
Casts a PhysicsBody from its current position and rotation to desired end point. |
Box |
Casts a box from point A to point B. |
Capsule |
Casts a capsule |
Cylinder |
Casts a cylinder |
FromTo |
Sets the start and end positions of the trace request |
HitTriggers |
Include triggers in the trace |
HitTriggersOnly |
Only hit triggers |
IgnoreDynamic |
Ignore dynamic objects in the trace |
IgnoreKeyframed |
Ignore keyframed objects in the trace |
IgnoreStatic |
Ignore static objects in the trace |
Radius |
Makes this trace a sphere of given radius. |
Ray |
Casts a ray from point A to point B. |
Rotated |
Sets the start rotation of the trace request |
Run |
Run the trace and return the result. The result will return the first hit. |
RunAgainstBBox |
Traces only against the given bounding box at the specified transform. |
RunAgainstCapsule |
Traces only against the given capsule at the specified transform. |
RunAgainstSphere |
Traces only against the given sphere at the specified transform. |
RunAll |
Run the trace and return all hits as a result. |
Size |
Makes this trace an axis aligned box of given size. Extracts mins and maxs from the Bounding Box. |
Sphere |
Casts a sphere from point A to point B. |
Sweep |
Sweeps each <see cref="T:Sandbox.PhysicsShape">PhysicsShape</see> of given PhysicsBody and returns the closest collision. Does not support Mesh PhysicsShapes.
Basically 'hull traces' but with physics shapes.
Same as tracing a body but allows rotation to change during the sweep. |
UseHitPosition |
Compute hit position. |
WithAllTags |
Only return with all of these tags |
WithAnyTags |
Only return entities with any of these tags |
WithCollisionRules |
Use the collision rules of the given tag. |
WithoutTag |
Only return with any of these tags |
WithoutTags |
Only return without any of these tags |
WithTag |
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). |