| 
    SO3Engine
    
   | 
 
Classes |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members  
  OgreNewt::PlayerController Class Reference
#include <OgreNewt_PlayerController.h>
Inheritance diagram for OgreNewt::PlayerController:
  
Classes | |
| struct | DebugInfo | 
Public Member Functions | |
| PlayerController (OgreNewt::Body *child, Ogre::Real stairHeight, Ogre::Real kinematicCushion=1.0f/64.0f) | |
| constructor   | |
| virtual | ~PlayerController () | 
| void | getVelocity (Ogre::Real &forwardSpeed, Ogre::Real &sideSpeed, Ogre::Radian &heading) const | 
| get currently set velocity   | |
| void | setVelocity (Ogre::Real forwardSpeed, Ogre::Real sideSpeed, Ogre::Radian heading) | 
| set the characters velocity, the -Speed-values can be negative, sideSpeed positive means move to the right, heading is in absolute space   | |
| Ogre::Real | getPlayerHeight () const | 
| get the Player height   | |
  Public Member Functions inherited from OgreNewt::Joint | |
| Joint () | |
| constructor   | |
| virtual | ~Joint () | 
| destructor   | |
| Body * | getBody0 () const | 
| get the pointer to the first rigid body   | |
| Body * | getBody1 () const | 
| get the pointer to the first rigid body   | |
| const OgreNewt::World * | getWorld () | 
| get the pointer to the world   | |
| virtual void | submitConstraint (Ogre::Real timeStep, int threadIndex) | 
| must be define for a functioning joint.   | |
| int | getCollisionState () const | 
| returns collision state   | |
| void | setCollisionState (int state) const | 
| sets the collision state   | |
| Ogre::Real | getStiffness () const | 
| get joint stiffness   | |
| void | setStiffness (Ogre::Real stiffness) const | 
| set joint stiffness   | |
Protected Member Functions | |
| virtual void | showDebugData (Ogre::SceneNode *debugRootNode) | 
| show joint visual debugging data   | |
  Protected Member Functions inherited from OgreNewt::Joint | |
| void | addLinearRow (const Ogre::Vector3 &pt0, const Ogre::Vector3 &pt1, const Ogre::Vector3 &dir) const | 
| void | addAngularRow (Ogre::Radian relativeAngleError, const Ogre::Vector3 &dir) const | 
| void | addGeneralRow (const Ogre::Vector3 &linear0, const Ogre::Vector3 &angular0, const Ogre::Vector3 &linear1, const Ogre::Vector3 &angular1) const | 
| void | setRowMinimumFriction (Ogre::Real friction) const | 
| void | setRowMaximumFriction (Ogre::Real friction) const | 
| void | setRowStiffness (Ogre::Real stiffness) const | 
| void | setRowAcceleration (Ogre::Real accel) const | 
| void | setRowSpringDamper (Ogre::Real springK, Ogre::Real springD) const | 
| void | SetSupportJoint (CustomJoint *supportJoint) | 
| SetSupportJoint.   | |
| CustomJoint * | GetSupportJoint () const | 
| GetSupportJoint.   | |
Protected Attributes | |
| std::vector< DebugInfo > | m_debugInfo | 
  Protected Attributes inherited from OgreNewt::Joint | |
| CustomJoint * | m_joint | 
Additional Inherited Members | |
  Static Protected Member Functions inherited from OgreNewt::Joint | |
| static void _CDECL | destructorCallback (const CustomJoint *me) | 
| joint destructor callback glue   | |
| static void _CDECL | submitConstraintCallback (const CustomJoint *me, dFloat timestep, int threadIndex) | 
| submintContraint   | |
Detailed Description
this class implements a player-controller based on the code of the CustomPlayerController-class in the Newton-CustomJoints library
Definition at line 27 of file OgreNewt_PlayerController.h.
Constructor & Destructor Documentation
◆ PlayerController()
| OgreNewt::PlayerController::PlayerController | ( | OgreNewt::Body * | child, | 
| Ogre::Real | stairHeight, | ||
| Ogre::Real | kinematicCushion = 1.0f/64.0f  | 
        ||
| ) | 
constructor
- Parameters
 - 
  
localFrame this is the player frame in global Space (x: side, y: up, -z forward)  
◆ ~PlayerController()
      
  | 
  virtual | 
Member Function Documentation
◆ getPlayerHeight()
| Ogre::Real OgreNewt::PlayerController::getPlayerHeight | ( | ) | const | 
get the Player height
◆ getVelocity()
| void OgreNewt::PlayerController::getVelocity | ( | Ogre::Real & | forwardSpeed, | 
| Ogre::Real & | sideSpeed, | ||
| Ogre::Radian & | heading | ||
| ) | const | 
get currently set velocity
◆ setVelocity()
| void OgreNewt::PlayerController::setVelocity | ( | Ogre::Real | forwardSpeed, | 
| Ogre::Real | sideSpeed, | ||
| Ogre::Radian | heading | ||
| ) | 
set the characters velocity, the -Speed-values can be negative, sideSpeed positive means move to the right, heading is in absolute space
◆ showDebugData()
      
  | 
  protectedvirtual | 
show joint visual debugging data
implement its own version of visual debugging
Reimplemented from OgreNewt::Joint.
Member Data Documentation
◆ m_debugInfo
      
  | 
  protected | 
Definition at line 60 of file OgreNewt_PlayerController.h.
The documentation for this class was generated from the following file:
- include/External/ogrenewt/OgreNewt_PlayerController.h
 
Generated by
 Public Member Functions inherited from