Jump to content
  • 0
Sign in to follow this  
Igor Q.

RESOLVED Aim logic resets angle when player doesn't move

Question

image.thumb.png.6bf2e350857aedb5c0ebba4fc43a9094.png

I set up the following script using an animated arrow to follow the player. When the player stops moving, the arrow rotation resets back to a default position. Once the player starts moving again, the arrow starts to correctly follow the player.

Edit: I believe the issue is caused by objects with no collision

Edited by Igor Q.

Share this post


Link to post
Share on other sites

1 reply to this bug / suggestion

Recommended Posts

  • 0

Hi,

I see one problem there. "Target offset" in "Aim to instruction is position offset from a target. It is not rotation offset from the result rotation.

Aim to rotates object towards target (or towards position offset from the target entity). It does not work in the way as "Aim as/copy rotation" would work.

Try this setup:

followandaim.PNG

(or you would have to to make group from the arrow with desired rotation and offset from the group pivot)

  • Thanks 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×