|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
27 #include <OgreHardwareVertexBuffer.h>
29 #include <OgrePlane.h>
30 #include <OgreRenderTargetListener.h>
31 #include <OgreTexture.h>
32 #include <OgreVector3.h>
44 Water(Ogre::Vector3 terrn_size);
100 void ShowWave(Ogre::Vector3 refpos);
ReflectionListener m_reflect_listener
Ogre::SceneManager * scene_mgr
bool IsCameraUnderWater()
Ogre::Entity * m_waterplane_entity
bool IsUnderWater(Ogre::Vector3 pos) override
Ogre::SceneNode * m_bottomplane_node
Ogre::RenderTexture * m_reflect_rtt_target
Ogre::SceneNode * m_waterplane_node
Ogre::HardwareVertexBufferSharedPtr m_waterplane_vert_buf
void SetWavesHeight(float value) override
Ogre::Vector3 CalcWavesVelocity(Ogre::Vector3 pos) override
float * m_waterplane_vert_buf_local
void SetReflectionPlaneHeight(float centerheight) override
Ogre::Camera * m_reflect_cam
< TODO: Mixed gfx+physics (waves) - must be separated ~ only_a_ptr, 02/2018
void ClearForcedCameraTransform() override
Ogre::TexturePtr m_reflect_rtt_texture
Ogre::Entity * waterplane_entity
float GetWaveHeight(Ogre::Vector3 pos)
Ogre::Plane m_bottom_plane
Ogre::Entity * waterplane_entity
Ogre::Viewport * m_reflect_rtt_viewport
float CalcWavesHeight(Ogre::Vector3 pos) override
Ogre::Plane m_reflect_plane
void FrameStepWater(float dt) override
void UpdateReflectionPlane(float h) override
void SetForcedCameraTransform(Ogre::Radian fovy, Ogre::Vector3 pos, Ogre::Quaternion rot) override
void preRenderTargetUpdate(const Ogre::RenderTargetEvent &evt) override
void postRenderTargetUpdate(const Ogre::RenderTargetEvent &evt) override
void ShowWave(Ogre::Vector3 refpos)
float GetStaticWaterHeight() override
Returns static water level configured in 'terrn2'.
void SetStaticWaterHeight(float value) override
std::vector< WaveTrain > m_wavetrain_defs
void WaterPrepareShutdown() override
Central state/object manager and communications hub.
Ogre::Camera * m_refract_cam
Ogre::Plane m_water_plane
Ogre::TexturePtr m_refract_rtt_texture
Ogre::Radian m_cam_forced_fovy
bool m_waterplane_force_update_pos
Ogre::Plane m_refract_plane
void postRenderTargetUpdate(const Ogre::RenderTargetEvent &evt) override
void preRenderTargetUpdate(const Ogre::RenderTargetEvent &evt) override
Water(Ogre::Vector3 terrn_size)
void UpdateWater() override
Ogre::MeshPtr m_waterplane_mesh
Ogre::Quaternion m_cam_forced_orientation
void SetWaterBottomHeight(float value) override
Ogre::Viewport * m_refract_rtt_viewport
void SetWaterVisible(bool value) override
Ogre::SceneManager * scene_mgr
Ogre::RenderTexture * m_refract_rtt_target
float m_waterplane_mesh_scale
RefractionListener m_refract_listener
Ogre::Vector3 m_cam_forced_position