playMaker

Author Topic: Set Parent MainCamera to an empty  (Read 2203 times)

iwan.kartiko

  • Playmaker Newbie
  • *
  • Posts: 6
Set Parent MainCamera to an empty
« on: April 11, 2012, 02:21:01 AM »
Hi,

I made an effort to create a sequence of a player entering a car. I tried as the last sequence to parent mainCamera to the car empty. Because I want the camera to move as the car move. to my surprise, in scene window, the camera seems to be thrown off a great distance everytime this set parent being called. Tthe hierarchy window it seems correct.

Any suggestion? Thank you.

-ikart

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Set Parent MainCamera to an empty
« Reply #1 on: April 11, 2012, 03:12:27 PM »
Not sure what you mean by "empty"... an empty game object? You're trying to parent the camera to the car? And you've parented an empty game object to the car as the connection point? Then you try to connect the camera to this empty game object?

If so, check that the empty game object has default scale and rotation...

Or post a screenshot of your setup if it's something else...

iwan.kartiko

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Set Parent MainCamera to an empty
« Reply #2 on: April 14, 2012, 12:57:35 AM »
Hi Alex,

I am sorry for my poor description. It is like this.

empty GameObject -> car object

Then I tried to parent the main camera to the car to achieve

empty GameObject -> car object
                                -> mainCamera

Yes, this empty gameobject serves as the connection point for the camera. Yes, empty game object has default rotation ans scaling. I will give it another try and I let you know. Perhaps I made mistake somewhere along the way.

Regards,
 Iwan