Aim IK incorrect for custom ability

Hey, I created a new laying ability, but the character cannot aim correctly with my new ability.


Please take a look at my screenshot, two characters have the same configs and aiming to the camera.
The only difference is the current active ability.

Please show me how can I fix it.
 

Attachments

  • Screenshot 2022-10-21 232124.png
    Screenshot 2022-10-21 232124.png
    183.2 KB · Views: 7
The look direction is controlled by the look source. You should either adjust your camera position along with the prone, or modify the ViewType so it returns a different LookDirection.
 
@Justin thank you for your reply.
Of course, I use LocalLookSource and they are both targeting the camera.
Can you explain more about how to adjust your camera position? Is there any tutorial for this case?
 
@Justin thank you for your reply.
Of course, I use LocalLookSource and they are both targeting the camera.
Can you explain more about how to adjust your camera position? Is there any tutorial for this case?
Local look source is for ai/remote. What you need to do is make a state preset with a look offset minus the height change, roughly .2 or .3 on the Y axis should be a good starting point.
Go to the camera controller component, and then select the viewtype your using. Start playing with the the offset and you'll find you will find your mark.
 
Top