|
DIE Engine
|
#include <walker.h>
Public Member Functions | |
| Walker () | |
| void | init () |
| void | terminate () |
| void | update () |
| Poll the gamepad, move the walker and update the editor viewpoint. | |
Public Attributes | |
| QVector3D | pos |
| QVector3D | speed |
| QVector3D | accel |
| float | pan |
| float | tilt |
| float | pitchTargetPad |
| pitch from the gamepad | |
| float | pitchTargetMouse |
| pitch from the mouse (set by the map view) | |
| int | jumpCount |
| bool | onFloor |
| bool | isFlying |
Static Public Attributes | |
| static constexpr float | speedPan = 0.10f |
| static constexpr float | speedRun = 0.45f |
| static constexpr float | speedStrafe = 0.33f |
| static constexpr float | radius = 2.0f |
| static constexpr float | cameraPitch = 40.0f |
WALLER Map editor for the DIE engine (c) Fred's Lab 2024-2026 Frédéric Meslin / info@.nosp@m.fred.nosp@m.slab..nosp@m.net SPDX-License-Identifier: MIT If used commercially, contributions, donations are highly appreciated.
first-person walker
| Walker::Walker | ( | ) |
| void Walker::init | ( | ) |
| void Walker::terminate | ( | ) |
| void Walker::update | ( | ) |
Poll the gamepad, move the walker and update the editor viewpoint.
| QVector3D Walker::accel |
|
staticconstexpr |
| bool Walker::isFlying |
| int Walker::jumpCount |
| bool Walker::onFloor |
| float Walker::pan |
| float Walker::pitchTargetMouse |
pitch from the mouse (set by the map view)
| float Walker::pitchTargetPad |
pitch from the gamepad
| QVector3D Walker::pos |
|
staticconstexpr |
| QVector3D Walker::speed |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
| float Walker::tilt |