bool GroundIsDynamic { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The GroundIsDynamic property of the PlayerController class indicates whether the player is currently standing on a surface that is physically dynamic. A dynamic surface is one that can move or change, such as a moving platform or a rotating object.

Usage

Use this property to determine if the player is on a dynamic surface, which can affect gameplay mechanics such as movement, physics interactions, and animations. This can be particularly useful for implementing features like adjusting player movement based on the surface's velocity or handling special interactions when on dynamic objects.

Example

// Example of checking if the player is on a dynamic ground
if (playerController.GroundIsDynamic)
{
    // Implement logic for when the player is on a dynamic surface
    // For example, adjust player movement or trigger specific animations
}