robot_2Generated
code_blocksInput

Description

The Invalid field is a member of the PhysicsMotionType enumeration within the Sandbox namespace. It represents an invalid or uninitialized state for a physics motion type. This value is typically used as a default or error state, indicating that a valid motion type has not been set.

Usage

Use the Invalid field when you need to check or set a physics motion type to an uninitialized or error state. This can be useful for debugging or ensuring that a physics body has been properly configured before use.

Example

// Example of using PhysicsMotionType.Invalid
PhysicsMotionType motionType = PhysicsMotionType.Invalid;

if (motionType == PhysicsMotionType.Invalid)
{
    // Handle the invalid state, perhaps by setting a default value
    motionType = PhysicsMotionType.Static;
}