PlayerController.
More...
#include <OgreNewt_PlayerController.h>
|
| 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
|
|
| 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
|
|
|
static void _CDECL | destructorCallback (const CustomJoint *me) |
| joint destructor callback glue
|
|
static void _CDECL | submitConstraintCallback (const CustomJoint *me, dFloat timestep, int threadIndex) |
| submintContraint
|
|
PlayerController.
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.
◆ 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 OgreNewt::PlayerController::~PlayerController |
( |
| ) |
|
|
virtual |
◆ getPlayerHeight()
Ogre::Real OgreNewt::PlayerController::getPlayerHeight |
( |
| ) |
const |
◆ 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()
virtual void OgreNewt::PlayerController::showDebugData |
( |
Ogre::SceneNode * |
debugRootNode | ) |
|
|
protectedvirtual |
show joint visual debugging data
implement its own version of visual debugging
Reimplemented from OgreNewt::Joint.
◆ m_debugInfo
std::vector<DebugInfo> OgreNewt::PlayerController::m_debugInfo |
|
protected |
The documentation for this class was generated from the following file: