Description
The OnPhysicsChanged
method is a member of the Collider
class in the Sandbox namespace. This method is marked as obsolete, indicating that it is no longer recommended for use and may be removed in future versions. It is intended to be called when the physics properties of the collider have changed.
Usage
Since OnPhysicsChanged
is marked as obsolete, it is advised to avoid using this method in new code. Instead, look for alternative methods or properties that provide the desired functionality. If you must use it, be aware that it may not be supported in future updates of the API.
Example
// Example of using OnPhysicsChanged (not recommended due to obsolescence)
Collider collider = new Collider();
collider.OnPhysicsChanged(); // This will trigger any logic associated with physics changes, but is obsolete.