playMaker

Author Topic: SmoothLookAt with offset request (SmoothLookAtWithOffset).  (Read 176 times)

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
SmoothLookAt with offset request (SmoothLookAtWithOffset).
« on: June 12, 2021, 10:09:12 AM »
Good day.

Could anyone help us add an offset object to the default SmoothLookAt? 

We need to rotate a character so that the character's weapon points at the target.

Thanks so much to this great community.  We appreciate you immensely.

« Last Edit: June 12, 2021, 05:03:34 PM by Sid »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15483
  • Official Playmaker Support
    • View Profile
Re: SmoothLookAt with offset request (SmoothLookAtWithOffset).
« Reply #1 on: June 16, 2021, 12:43:30 AM »
Hi,


have you tried the action Vector3RotateTowards ? you can control speed.

usually, for such system, I compose using a one object that move towards the target, and then I have my player or turret to look at the object moving towards the target, it gives me more flexibility and ways to debug this way.

 have you tried like that?

Bye,

 Jean

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
Re: SmoothLookAt with offset request (SmoothLookAtWithOffset).
« Reply #2 on: June 16, 2021, 07:19:08 PM »
Thanks so much for the reply, Jean.  You're a true hero.

This site lays out our problem really well:
https://gamedev.stackexchange.com/questions/133977/how-can-i-rotate-an-object-based-on-anothers-offset-to-it

I know you're busy.  If you or anyone gets a chance to take a crack at this, it would be truly appreciated and is so desperately needed.

Thanks again to everybody.