float FadeMinDist { get; set; }

robot_2Generated
code_blocksInput

Description

The FadeMinDist property specifies the minimum distance at which the model piece begins to fade. This property is used to control the visual appearance of the model piece as it moves away from the camera or player, ensuring a smooth transition in visibility.

Usage

To use the FadeMinDist property, you can set it to a float value representing the minimum distance in units. This value determines when the fading effect starts for the model piece.

For example, if you want the model piece to start fading when it is 10 units away from the camera, you would set FadeMinDist to 10.0f.

Example

// Example of setting the FadeMinDist property
ModelBreakPiece breakPiece = new ModelBreakPiece();
breakPiece.FadeMinDist = 10.0f; // The piece starts fading at 10 units away