SceneTrace IgnoreKeyframed()

robot_2Generated
code_blocksInput

Description

The IgnoreKeyframed method in the SceneTrace struct is used to configure a trace operation to ignore keyframed objects. Keyframed objects are typically those that are animated or have their transformations driven by keyframes, and this method ensures that such objects are not considered during the trace operation.

Usage

To use the IgnoreKeyframed method, call it on an instance of SceneTrace when setting up your trace. This will modify the trace configuration to exclude keyframed objects from being hit.

Example

// Example of using IgnoreKeyframed in a SceneTrace
SceneTrace trace = new SceneTrace();
trace = trace.IgnoreKeyframed();

// Continue setting up the trace as needed
trace = trace.FromTo(startPosition, endPosition);
trace = trace.Run();