Rotating Camera

rommaromma Member Posts: 114
edited May 2012 in Working with GS (Mac)
Hey Guys,

Maybe this has been asked but I haven't found some tips or a solution on this.

How is it possible to have a camera follow the actor with even with rotation like in PuzzleDozer from gamemold.

Thanks for the headsup!

Comments

  • AppTekAppTek Member Posts: 152
    All you need to do is put a control camera behavior in the actor you want to control the camera. In puzzle dozer, the truck turns, making it look like the camera rotated, but it didn't.
  • simo103simo103 Member, PRO Posts: 1,331
    edited May 2012
    I believe the camera is rotating ... the dozer almost stays vertical and that is achieved IMO by tying the camera rotation to the dozers rotation. In gamesmold excellent execution there is a little 'softness' to the motion so it eases in and out leading me to believe he tied the rotation of the dozer to the rotation of the camera using interpolate and a slight delay. Would be great to get more input on how this was achieved because it is a fantastic gameplay mechanism. Particularly because the dozer moves position yet maintains itself as the camera's center of rotation.
  • rommaromma Member Posts: 114
    I think there must be more more than control camera behavior into the actor. I'll give that a try anyways to confirm.
  • rommaromma Member Posts: 114
    Would be awesome for "gamemold" to share his knowledge and experiences while making this effect!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    try putting the control camera behavior in the player and also constraing camera.rotation to -player.rotation+90
  • rommaromma Member Posts: 114
    Confirmed:

    In fact the camera can be controled with the actors rotate but by just doing that it makes it awfully hard for anyone to play. I tested John's take and that is the result I got.

    Gamemold did something else to keep the dozer centered on the camera but still rotate itself and the camera like @simo103 said

    Any other takes?
  • rommaromma Member Posts: 114
    UPDATE:

    I missed John's negative value (-player.rotation+90) this makes it come very close, despite it, it doesnt achieve the PuzzleDozer effect. Besides the easing part. When you press Left or Right the dozer rotates in its AXIS while the camera moves, the methods recommend here don't.
  • rommaromma Member Posts: 114
    Bump.
Sign In or Register to comment.