//----------------------------------------------------------------------------- // Purpose: (Ipion) Create a raycast car controller. // Input: pEnvironment - the physics environment the car is to reside in // pCarSystemTemplate - ipion's car system template (filled out with car parameters) //----------------------------------------------------------------------------- IVP_Controller_Raycast_Airboat::IVP_Controller_Raycast_Airboat( IVP_Environment *pEnvironment/*environment*/, const IVP_Template_Car_System *pCarSystemTemplate/*tcs*/ ) { InitRaycastCarBody( pCarSystemTemplate ); InitRaycastCarEnvironment( pEnvironment, pCarSystemTemplate ); InitRaycastCarWheels( pCarSystemTemplate ); InitRaycastCarAxes( pCarSystemTemplate ); }
//----------------------------------------------------------------------------- // Purpose: (Ipion) Create a raycast car controller. // Input: pEnvironment - the physics environment the car is to reside in // pCarSystemTemplate - ipion's car system template (filled out with car parameters) //----------------------------------------------------------------------------- IVP_Controller_Raycast_Airboat::IVP_Controller_Raycast_Airboat( IVP_Environment *pEnvironment/*environment*/, const IVP_Template_Car_System *pCarSystemTemplate/*tcs*/ ) { InitRaycastCarBody( pCarSystemTemplate ); InitRaycastCarEnvironment( pEnvironment, pCarSystemTemplate ); InitRaycastCarWheels( pCarSystemTemplate ); InitRaycastCarAxes( pCarSystemTemplate ); m_bAirborne = IVP_FALSE; m_flAirborneTime = 0.0f; m_bAirborneIdle = IVP_FALSE; m_flKeepUprightPitch = 0.0f; m_flKeepUprightRoll = 0.0f; }