void ClearLerp()

robot_2Generated
code_blocksInput

Description

The ClearLerp method is part of the GameTransform class in the Sandbox API. This method is marked as obsolete and should not be used in new code. Instead, developers are advised to use the ClearInterpolation method, which serves a similar purpose.

The ClearLerp method was originally intended to clear any ongoing interpolation, forcing the object to reach its final destination immediately. However, the ClearInterpolation method now provides a more robust and updated implementation for this functionality.

Usage

Since ClearLerp is obsolete, it is recommended to replace any usage of this method with ClearInterpolation in your codebase. This ensures that your code remains up-to-date with the latest API standards and practices.

To update your code, locate any calls to ClearLerp and replace them with ClearInterpolation. This change will help maintain compatibility with future updates to the Sandbox API.

Example

// Example of replacing ClearLerp with ClearInterpolation

// Old code using ClearLerp
// gameTransform.ClearLerp();

// Updated code using ClearInterpolation
GameTransform gameTransform = new GameTransform();
gameTransform.ClearInterpolation();