Description
The WithWishVelocity
method is part of the CitizenAnimationHelper
class in the Sandbox.Citizen
namespace. This method is used to set the desired velocity for the citizen's animation. It helps in determining the animation state based on the intended movement direction and speed.
Usage
To use the WithWishVelocity
method, you need to have an instance of the CitizenAnimationHelper
class. You can then call this method with a Vector3
parameter representing the desired velocity.
Example
// Example of using WithWishVelocity
// Assume 'animationHelper' is an instance of CitizenAnimationHelper
Vector3 desiredVelocity = new Vector3(1.0f, 0.0f, 0.0f); // Example velocity
animationHelper.WithWishVelocity(desiredVelocity);