Setting up the TPM Component on an AI
Last updated
Last updated
If you haven't already done so, you will need to add the Target Position Modifier Component to your AI. You can do this by searching for the TargetPositionModifier script and dragging it onto your AI GameObject.
When you first apply the TPM Component, you will have a warning message at the top of the component.
To resolve this, you will need to open the TPM Settings and apply a bone transform form inside your AI to the Transform Source.
Note: It is recommended that this is one of an AI's spine transforms as these typically have the best results and remain consistent.
You will then see a Gizmo drawn on your AI object indicated by a red sphere by default.
Note: You can then make any adjustments using the Height Modifier within the TPM Component and the changes will be seen on the spherical Gizmo.
Important: Ensure that the gizmo does not go into the ground or go above the AI as this could make a target undetectable to other AI.