Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: vonpopov on August 29, 2014, 11:51:27 AM

Title: What is the Action to rotate arround a target ? [SOLVED]
Post by: vonpopov on August 29, 2014, 11:51:27 AM
Hi

What is the Action to rotate arround a target ?
I know how to set the target, i just miss the good action to rotate arround ?

regards
Title: Re: What is the Action to rotate arround a target ?
Post by: Sly on August 29, 2014, 12:11:59 PM
You should add more details about what you are trying to do, because I'm not sure about what you are talking about.

You can probably use "Look At" action to point something + a move action, who's moving on X move vector (+1 or -1).
Title: Re: What is the Action to rotate arround a target ?
Post by: vonpopov on August 29, 2014, 01:16:16 PM
You should add more details about what you are trying to do, because I'm not sure about what you are talking about.

You can probably use "Look At" action to point something + a move action, who's moving on X move vector (+1 or -1).

This is for an RTS camera.
When middle click pressed, then mouse left / right made the camera turning arround the hitpoint (middle click)

no problem with the hit point, no problem for the camera movement, i just need some tips about the correct action to use in order to rotate "arround" the hitpoint

:)
Title: Re: What is the Action to rotate arround a target ?
Post by: vonpopov on August 29, 2014, 05:46:10 PM
Found, by myself.

Store the position where i picked, then spawn an empty object, set it as parent, turn the empty object, once this is finished, delete the empty object

that is all :)