Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: peaks on August 10, 2018, 03:55:10 AM

Title: homing missile with target follow, strange rotation behavior
Post by: peaks on August 10, 2018, 03:55:10 AM
hey everyone, sorry for that topic name, I can't describe it better ;D I want to create homing missile which follows a target and the missile-tip is constantly facing the target. ( 3D/VR game not 2d).

I tried working with 2 actions, move towards and smooth look at but I get an undesirable side effect - the top of the rocket is rotating and my rocket can't fly "upside down". I have made a small illustration, to give you guys a better idea.

(https://i.imgur.com/qEwCzcm.jpg)

any tips how to achieve this?


Title: Re: homing missile with target follow, lookat and ability to fly upside down
Post by: Fat Pug Studio on August 10, 2018, 05:11:29 AM
Have you tried freezing the rotation of the rigidbody?
Title: Re: homing missile with target follow, lookat and ability to fly upside down
Post by: peaks on August 10, 2018, 05:37:16 AM
Have you tried freezing the rotation of the rigidbody?

no rigidbody is involed, but i think freezing the rotation wouldn't help, because I indeed need rotation at some point
Title: Re: homing missile with target follow, lookat and ability to fly upside down
Post by: peaks on August 10, 2018, 05:38:48 AM
aah ok, the rocket does fly upside down now if I set the up vector to 0,0,0 but I think it can't exceed 180°, then i get a superfast rotation which i don't like. hmmm

edit: here's a short video of the situation, have a look how the rocket behave after the looping, it rotates suddenly superfast or does crazy barrel-rolls :D

(https://thumbs.gfycat.com/ClutteredUltimateKitty-size_restricted.gif)