|
PGR Copakond OpenGL Engine - Bowling
|
Bowling-specific player controller handling throwing mechanics and scene interactions. More...
#include <inputControllerBowling.h>
Public Member Functions | |
| InputControllerBowling (Camera *cam, Input *input, BowlingScene *scene) | |
| void | setPlayer (RigidBody *p) |
| void | setLevelEditor (LevelEditor *lev) |
| LevelEditor * | getLevelEditor () |
| void | update (float deltaTime) override |
| int | raycast (int x, int y) |
| void | setCameraSpline (Spline *spline) |
| void | selectBowlingBallE () |
| Triggers ball pickup logic when close to an available bowling ball. | |
| void | onKeyboardEvent (unsigned char key, int x, int y, bool isDown) override |
| void | onMouseButtonEvent (int button, int state, int x, int y) override |
| void | onMenuEvent (int option) override |
| Public Member Functions inherited from copakond::Controller | |
| Controller ()=default | |
| virtual | ~Controller ()=default |
| virtual void | onMouseMoveEvent (int x, int y) |
Public Attributes | |
| float | baseSpeed = 1.5f |
| float | shiftMultiplier = 1.75f |
| float | mouseDragCoeff = 0.05f |
Bowling-specific player controller handling throwing mechanics and scene interactions.
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from copakond::Controller.
|
overridevirtual |
Reimplemented from copakond::Controller.
|
overridevirtual |
Reimplemented from copakond::Controller.
| int copakond::InputControllerBowling::raycast | ( | int | x, |
| int | y ) |
| void copakond::InputControllerBowling::selectBowlingBallE | ( | ) |
Triggers ball pickup logic when close to an available bowling ball.
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements copakond::Controller.
| float copakond::InputControllerBowling::baseSpeed = 1.5f |
| float copakond::InputControllerBowling::mouseDragCoeff = 0.05f |
| float copakond::InputControllerBowling::shiftMultiplier = 1.75f |