Re: [xmoto-dev] svn 1404 : merged benetnash with trunk |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/xmoto-dev Archives
]
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 } }