Description
The UpdatePositions
method is a public instance method of the ManualHitbox
class. This method is responsible for updating the positions of the hitbox based on the current state of the associated GameObject
. It ensures that the hitbox accurately reflects the current position and orientation of the object it is attached to.
Usage
To use the UpdatePositions
method, you must have an instance of the ManualHitbox
class. This method does not take any parameters and does not return a value. It is typically called when the position or orientation of the GameObject
changes, ensuring that the hitbox remains in sync with the object.
Example
// Assuming 'hitbox' is an instance of ManualHitbox
hitbox.UpdatePositions();
// This will update the hitbox positions to match the current state of the GameObject.