|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
27 #include <OgreUTFString.h>
28 #include <OgreMeshManager.h>
29 #include <OgreTimer.h>
44 Character(
int source = -1,
unsigned int streamid = 0, Ogre::UTFString playerName =
"",
int color_number = 0,
bool is_remote =
true);
60 void move(Ogre::Vector3 offset);
63 void receiveStreamData(
unsigned int& type,
int& source,
unsigned int& streamid,
char* buffer);
Ogre::Radian getRotation() const
Ogre::UTFString m_net_username
void setPosition(Ogre::Vector3 position)
void setColour(int color)
Global forward declarations.
float m_character_v_speed
Ogre::UTFString simbuf_net_username
const std::string & GetAnimName() const
void SetAnimState(std::string mode, float time=0)
< Buffered simulation state for async gfx scene update
Ogre::Vector3 m_character_position
std::string xc_instance_name
ActorPtr GetActorCoupling()
Ogre::UTFString const & GetNetUsername()
Ogre::Radian m_character_rotation
void UpdateCharacterInScene()
std::string simbuf_anim_name
float GetAnimTime() const
Ogre::Radian simbuf_character_rot
When on foot.
ActorPtr simbuf_actor_coupling
Ogre::SceneNode * xc_scenenode
void move(Ogre::Vector3 offset)
Ogre::Vector3 simbuf_character_pos
Character(int source=-1, unsigned int streamid=0, Ogre::UTFString playerName="", int color_number=0, bool is_remote=true)
void receiveStreamData(unsigned int &type, int &source, unsigned int &streamid, char *buffer)
float m_net_last_anim_time
Ogre::Vector3 getPosition()
SurveyMapEntity xc_surveymap_entity
std::string m_instance_name
void BufferSimulationData()
float m_driving_anim_length
void updateCharacterRotation()
void SetActorCoupling(bool enabled, ActorPtr actor)
float m_character_h_speed
GfxCharacter * m_gfx_character
Ogre::Vector3 m_prev_position
ActorPtr m_actor_coupling
The vehicle or machine which the character occupies.
void ReportError(const char *detail)
void setRotation(Ogre::Radian rotation)
unsigned long m_net_last_update_time
GfxCharacter * SetupGfx()