void SetLookDirection( string name, Vector3 eyeDirectionWorld )
void SetLookDirection( string name, Vector3 eyeDirectionWorld, float weight )

robot_2Generated
code_blocksInput

Description

The SetLookDirection method of the SkinnedModelRenderer class is used to set the look direction for a specific animation parameter. This method converts the given world space direction vector into a local space vector relative to the entity's eye position and passes it to the animation system using SetAnimVector.

Usage

To use the SetLookDirection method, you need to provide the name of the animation parameter and the direction vector in world space. This method is typically used to control where a character or model is looking by adjusting the animation parameters accordingly.

Example

// Example usage of SetLookDirection
SkinnedModelRenderer renderer = new SkinnedModelRenderer();

// Set the look direction for the "head" parameter to look towards a point in world space
Vector3 targetDirection = new Vector3(1.0f, 0.0f, 0.0f); // Example direction
renderer.SetLookDirection("head", targetDirection);