XNA Game Development Forums
2012/05/18 05:52:21 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Tutorial 12 :: Adding in Advanced Camera Functionality  (Read 11100 times)
Suzume
Newbie
*
Offline Offline

Posts: 9


View Profile
« Reply #30 on: 2007/08/01 07:00:20 »

Why is this working?

Code:
else
{
    slerpType = SlerpType.None;
    myRotation = slerpTarget;

    if(slerpType == SlerpType.Revolve) SlerpPosition();
}

Setting slerpType to None before actually doing the if-check doesn't make any sense - SlerpPosition() would never be called. But somehow it works ... I don't see the magic.
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Parenting Camera to an Object Hazy Mind XNA Engine Requests rstackhouse 4 3096 Last post 2007/03/14 06:13:57
by 5parrowhawk
Camera Issues Hazy Mind XNA Engine minich21 6 3044 Last post 2007/08/14 21:27:30
by mikeschuld
Tutorial 7...Is this functionality common? Is this only useful onyl in testing? Hazy Mind XNA Engine Robin Sarac 1 1423 Last post 2007/04/03 17:24:41
by Chr0n1x
Camera Issues Hazy Mind XNA Engine Trano 3 2807 Last post 2008/09/17 08:27:25
by mikeschuld
Camera Tracking Hazy Mind XNA Engine muchrejoicing 4 2005 Last post 2007/05/29 19:50:23
by daenris
Camera problem Hazy Mind XNA Engine Montynis 2 1685 Last post 2007/08/02 09:54:14
by Montynis
extending the camera classes/cameramanager Hazy Mind XNA Engine Mikeske 7 2076 Last post 2009/12/16 01:46:28
by Mikeske
Adding in a Screen Manager Hazy Mind XNA Engine mimminito 1 1683 Last post 2010/02/20 23:59:09
by Jeff Lamoureux
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 19 queries.