Look At - Utilities

Look At - Utilities

Updated
2024-05-16
Free
Templates
File Version
1.1.0
File size
2 MB
Registration required
Description

This asset provides a simple and efficient solution for characters with rigged armatures to face a target.

Please note that this package includes code only; no 3D models or shaders are provided.

 

The demo scenes utilize the Nagisa - 3D Model (sold separately) for the example scene. While this model enhances the demo, our component is compatible with any properly rigged humanoid characters, offering you flexibility and ease of use.

 

Source Code is included.

 

Just add the component to your character, click "Auto Fill In", set your target, and voilà! Your character is ready to interact in a more dynamic and engaging way. For those who prefer a more hands-on approach, you also have the option to manually assign rigged body parts.

 

There's no need for Inverse Kinematics (IK) rigs with our asset like other heavy solutions. Instead, we utilize efficient rotation algorithms in a lightweight, minimalistic approach to conserve CPU resources. Plus, our asset addresses common user experience issues by ensuring smooth transitions between targets, eliminating abrupt changes and enhancing the overall interaction experience!

 

Technical details

  • The Max Backwards Angle property provides a threshold for target engagement. When the target is behind the character, this feature prevents unnatural body twisting by ceasing rotation beyond the specified angle, ensuring more realistic character behavior.
  • Seamless transitions with no abrupt motions when changing or removing targets, ensuring a smooth and natural interaction.
  • For smooth target-to-target transitions, simply use the function SetNewTarget(Transform newTarget).
  • Highly optimized and efficient algorithm that is comprised of less than 200 lines of code, and does not rely on Inverse Kinematics (IK). As a result, it is less CPU-intensive than IK solutions, as it does not require solving complex equations to achieve the desired outcome.

Comments
Comments is not yet
Add Comment
Please register
Other interesting assets