Game Development Community

Bounding box / camera eye issue.

by Nmuta Jones · in Artist Corner · 02/26/2010 (4:36 pm) · 1 replies

In my game, you can choose to play as a giant.

The cam seems to default to the pivot of the bounding box of the giant, which does not work for me. I DO HAVE a "cam" node in him. And cam DOES show in ShowToolsPro. I have cam parented to unlink parented to Base01.

here is my dilemma:

www.mediabreeze.com/images/pivotIssue.jpg


Any ideas?

#1
02/27/2010 (4:03 am)
ok I fixed it by just manually adjusting all the variables when I do the player switch. I push the camera back and adjust the pitch:

%distance = %client.camera.getThirdPersonDistance();
  %distance += 5;
  %client.camera.setThirdPersonDistance(%distance);
  
   %amt = 0.7;
   $mvPitch += %amt;
   $accum_pitch += %amt;