playMaker

Author Topic: Touch control to make camera rotate around an object?  (Read 2320 times)

derkoi

  • Full Member
  • ***
  • Posts: 187
Touch control to make camera rotate around an object?
« 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Touch control to make camera rotate around an object?
« Reply #1 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