![Logo](../../rorlogo.png) |
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
74 bool mousePressed(
const OIS::MouseEvent& _arg, OIS::MouseButtonID _id);
void UpdateInputEvents(float dt)
@ CAMERA_BEHAVIOR_INVALID
void UpdateCameraBehaviorVehicle()
Ogre::Radian m_cam_target_direction
Ogre::Vector3 m_cam_look_at_smooth_last
Ogre::Timer m_staticcam_update_timer
void UpdateCameraBehaviorFree()
Ogre::Vector3 m_cam_look_at_last
bool mouseMoved(const OIS::MouseEvent &_arg)
CameraBehaviors m_current_behavior
Ogre::Vector3 m_staticcam_look_at
void NotifyVehicleChanged(ActorPtr new_vehicle)
@ CAMERA_BEHAVIOR_ISOMETRIC
void DeactivateCurrentBehavior()
void ActivateNewBehavior(CameraBehaviors new_behavior, bool reset)
void UpdateCurrentBehavior()
bool CameraBehaviorVehicleMousePressed(const OIS::MouseEvent &_arg, OIS::MouseButtonID _id)
ActorPtr m_cct_player_actor
Ogre::SceneNode * GetCameraNode()
void UpdateCameraBehaviorFixed()
CameraBehaviors m_cam_before_toggled
Toggled modes (FREE, FREEFIX) remember original state.
Ogre::Real m_splinecam_spline_pos
Ogre::Vector3 m_cam_look_at
void CameraBehaviorOrbitUpdate()
float m_staticcam_fov_exponent
void NotifyContextChange()
std::deque< node_t * > m_splinecam_spline_nodes
Ogre::Real m_cct_trans_scale
CameraBehaviors GetCurrentBehavior() const
bool m_staticcam_force_update
Ogre::Camera * GetCamera()
void ReCreateCameraNode()
Needed since we call Ogre::SceneManager::ClearScene() after end of sim. session.
bool CameraBehaviorVehicleSplineMouseMoved(const OIS::MouseEvent &_arg)
Ogre::Vector3 m_staticcam_position
@ CAMERA_BEHAVIOR_VEHICLE_SPLINE
@ CAMERA_BEHAVIOR_CHARACTER
unsigned int m_splinecam_num_linked_beams
Ogre::SimpleSpline * m_splinecam_spline
@ CAMERA_BEHAVIOR_VEHICLE
bool mousePressed(const OIS::MouseEvent &_arg, OIS::MouseButtonID _id)
Central state/object manager and communications hub.
bool CameraBehaviorStaticMouseMoved(const OIS::MouseEvent &_arg)
void CameraBehaviorVehicleReset()
void ResetCurrentBehavior()
Ogre::ManualObject * m_splinecam_mo
bool m_charactercam_is_3rdperson
Ogre::SceneNode * m_camera_node
bool CameraBehaviorOrbitMouseMoved(const OIS::MouseEvent &_arg)
void switchBehavior(CameraBehaviors new_behavior)
bool m_cam_limit_movement
Ogre::Radian m_staticcam_previous_fov
void CameraBehaviorVehicleSplineUpdate()
Ogre::Radian m_cam_target_pitch
void SwitchBehaviorOnVehicleChange(CameraBehaviors new_behavior, ActorPtr new_vehicle)
void ToggleCameraBehavior(CameraBehaviors new_behavior)
Only accepts FREE and FREEFIX modes.
Ogre::Vector3 m_cam_look_at_smooth
void CameraBehaviorVehicleSplineUpdateSpline()
void UpdateCameraBehaviorStatic()
bool EvaluateSwitchBehavior()
Ogre::Real m_splinecam_spline_len
CameraBehaviors m_prev_toggled_cam
Switching toggled modes (FREE, FREEFIX) keeps 1-slot history.
void CameraBehaviorVehicleSplineCreateSpline()
void CameraBehaviorVehicleSplineUpdateSplineDisplay()
void CameraBehaviorVehicleSplineReset()
@ CAMERA_BEHAVIOR_VEHICLE_CINECAM
bool m_splinecam_spline_closed
bool m_splinecam_auto_tracking
Ogre::Degree m_cct_rot_scale
void switchToNextBehavior()
void CameraBehaviorOrbitReset()