book_4_sparkGenerated
code_blocksInput

Description

The IsStandableSurface method is a virtual method of the MoveModeWalk class, which is part of the Sandbox.Movement namespace. This method determines whether a given surface is standable based on the provided trace result.

Usage

To use the IsStandableSurface method, you need to have an instance of the MoveModeWalk class. You will also need a SceneTraceResult object that represents the result of a trace operation. Pass this object by reference to the method to check if the surface is standable.

Example

// Assuming 'moveModeWalk' is an instance of MoveModeWalk
// and 'traceResult' is a SceneTraceResult obtained from a trace operation

bool isStandable = moveModeWalk.IsStandableSurface(ref traceResult);

if (isStandable)
{
    // The surface is standable
}
else
{
    // The surface is not standable
}