Re: [xmoto-dev] svn 1404 : merged benetnash with trunk |
[ Thread Index | Date Index | More lists.tuxfamily.org/xmoto-dev Archives ]
Dnia Mon, 30 Apr 2007, nadenislamarre@xxxxxxx naskrobal > benetnash, > i don't understand the advantage of what you did in the BikePlayer.cpp. > Can you tell me what it is for ? > > Nicolas > > 220 /* Apply attitude control (SIMPLISTIC!) */ /* Apply attitude control > (SIMPLISTIC!) */ > 221 if((m_BikeC.Pull() != 0.0f) && (i_time > m_fNextAttitudeCon)) { > if((m_BikeC.Pull() != 0.0f) && (i_time > m_fNextAttitudeCon /*XXX*/ || > (m_BikeC.Pull() * m_fLastAttitudeDir < 0) /*XXX*/ )) { > 222 m_fAttitudeCon = m_BikeC.Pull() * PHYS_RIDER_ATTITUDE_TORQUE; > m_fAttitudeCon = m_BikeC.Pull() * PHYS_RIDER_ATTITUDE_TORQUE; > 223 m_fLastAttitudeDir = m_fAttitudeCon; > 224 m_fNextAttitudeCon = i_time + (0.6f * fabsf(m_BikeC.Pull())); > m_fNextAttitudeCon = i_time + (0.6f * fabsf(m_BikeC.Pull())); > 225 } } > With this player can change rotation from one direction to opposite without any delay - for example without my modifycation when player during flight wanted to cange his attitude to 30 degrees he had to make almost full circle - press left arrow and then right to stop after reaching desired attitude. Now player have only to press left arrow and then immediately right, it's hard to explain, you schould try to rapid press left and right arrows during game and see how it works ;). I hope this change will make the game slightly easrier, especially for new players, because I remember that when I started to play this game attitude control was the most difficult part of the game. Best Regards Janek Polak -- Janek Polak WWW: http://www.icpnet.pl/~benetnash GnuPG: 6A1E7B75 GG: 2852217 Jabber: benetnash@xxxxxxxxxxxxx
Attachment:
pgpsIisZddlrm.pgp
Description: PGP signature
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |