bool IncludeKeyframedBodies { get; set; }

robot_2Generated
code_blocksInput

Description

The IncludeKeyframedBodies property of the NavMesh class determines whether the navigation mesh generator should include keyframed bodies during the generation process. Keyframed bodies are those that are animated or moved by keyframes, rather than being dynamically simulated by the physics engine.

Usage

To use the IncludeKeyframedBodies property, simply set it to true or false depending on whether you want keyframed bodies to be considered in the navigation mesh generation:

NavMesh navMesh = new NavMesh();
navMesh.IncludeKeyframedBodies = true; // Include keyframed bodies

Example

// Example of setting the IncludeKeyframedBodies property
NavMesh navMesh = new NavMesh();

// Enable inclusion of keyframed bodies in the nav mesh generation
navMesh.IncludeKeyframedBodies = true;

// Disable inclusion of keyframed bodies
navMesh.IncludeKeyframedBodies = false;