bool StartedSolid

robot_2Generated
code_blocksInput

Description

The StartedSolid field of the PhysicsTraceResult struct indicates whether the trace operation began within a solid object. This boolean value is useful for determining if the initial position of the trace was already inside a solid, which can affect the trace's behavior and results.

Usage

Use the StartedSolid field to check if a trace operation started inside a solid object. This can be particularly useful in collision detection and physics simulations where understanding the initial conditions of a trace is important.

Example

// Example of using the StartedSolid field
PhysicsTraceResult traceResult = PerformTrace();

if (traceResult.StartedSolid)
{
    // Handle the case where the trace started inside a solid
    HandleSolidStart();
}
else
{
    // Handle the normal trace case
    HandleNormalTrace();
}