struct PhysicsTraceBuilder

robot_2Generated
code_blocksInput

Description

The PhysicsTraceBuilder struct in the Sandbox namespace is a utility for constructing and executing physics traces in the game environment. It provides a fluent interface for defining the parameters of a trace, such as shape, size, and collision rules, and then running the trace to obtain results.

Members

Instance Methods

Member Name Summary
Sphere Defines a spherical trace with a specified radius, starting and ending points.
Box Defines a box-shaped trace with specified extents or bounding box, starting and ending points.
Capsule Defines a capsule-shaped trace with specified capsule dimensions, starting and ending points.
Cylinder Defines a cylindrical trace with specified height and radius, starting and ending points.
Ray Defines a ray trace with specified starting and ending points.
Body Defines a trace against a physics body, with optional starting and ending transforms.
Sweep Performs a sweep trace against a physics body, with specified starting and ending transforms.
FromTo Sets the starting and ending points for the trace.
Rotated Applies a rotation to the trace.
HitTriggers Includes triggers in the trace.
HitTriggersOnly Only hits triggers during the trace.
IgnoreStatic Ignores static objects in the trace.
IgnoreDynamic Ignores dynamic objects in the trace.
IgnoreKeyframed Ignores keyframed objects in the trace.
UseHitPosition Specifies whether to use the hit position in the trace.
Size Sets the size of the trace using a bounding box or vector dimensions.
Radius Sets the radius for the trace.
Run Executes the trace and returns the first hit result.
RunAll Executes the trace and returns all hit results.
RunAgainstCapsule Runs the trace against a capsule shape.
RunAgainstSphere Runs the trace against a sphere shape.
RunAgainstBBox Runs the trace against a bounding box shape.
WithTag Includes objects with a specific tag in the trace.
WithAllTags Includes objects with all specified tags in the trace.
WithAnyTags Includes objects with any of the specified tags in the trace.
WithoutTag Excludes objects with a specific tag from the trace.
WithoutTags Excludes objects with any of the specified tags from the trace.
WithCollisionRules Applies collision rules based on tags and trigger settings.