Jump to content

UpdateController to always move away from the camera


shadmar
 Share

Recommended Posts

Hi

 

I'm makeing some basic animation and A.I for the crawler as an self contained object.

I am using the charactercontroller and noticed that you can input move and strafe in

 

controller:Update(camRotation.y, move * moveSpeed, strafe * strafeSpeed, jump, 40 , 10, KeyDown(KEY_LCONTROL))

 

Any tip on how I can always move away from the camera if I know the camera position and the controller position using controller:Update() ?

 

I want he controller to flee from the camera sort of.

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...