Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: derkoi on November 08, 2012, 05:21:27 AM

Title: Touch control to make camera rotate around an object?
Post by: derkoi on November 08, 2012, 05:21:27 AM
Hi all,

I'm making a mobile car game and on the car selection screen I'd like the play to be able to move their finger around the screen to pan the camera around their car (this is on many mobile racing games).

Any ideas how I'd tackle this? I've bought the input touches package so I'm thinking I'd need to use that?

I'm thinking of placing an empty game object in the center of the screen with a camera as a child object looking at it from a distance, then rotate the empty object using input touches?
Title: Re: Touch control to make camera rotate around an object?
Post by: jeanfabre on November 08, 2012, 05:28:18 AM
Hi,

 Yes, you are on the right path: parent your camera with a dummy, then control the dummy. This is the most direct approach.

bye,

 Jean