DIE Engine
Loading...
Searching...
No Matches
Walker Class Reference

#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

Detailed Description

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

Constructor & Destructor Documentation

◆ Walker()

Walker::Walker ( )

Member Function Documentation

◆ init()

void Walker::init ( )

◆ terminate()

void Walker::terminate ( )

◆ update()

void Walker::update ( )

Poll the gamepad, move the walker and update the editor viewpoint.

Member Data Documentation

◆ accel

QVector3D Walker::accel

◆ cameraPitch

float Walker::cameraPitch = 40.0f
staticconstexpr

◆ isFlying

bool Walker::isFlying

◆ jumpCount

int Walker::jumpCount

◆ onFloor

bool Walker::onFloor

◆ pan

float Walker::pan

◆ pitchTargetMouse

float Walker::pitchTargetMouse

pitch from the mouse (set by the map view)

◆ pitchTargetPad

float Walker::pitchTargetPad

pitch from the gamepad

◆ pos

QVector3D Walker::pos

◆ radius

float Walker::radius = 2.0f
staticconstexpr

◆ speed

QVector3D Walker::speed

◆ speedPan

float Walker::speedPan = 0.10f
staticconstexpr

◆ speedRun

float Walker::speedRun = 0.45f
staticconstexpr

◆ speedStrafe

float Walker::speedStrafe = 0.33f
staticconstexpr

◆ tilt

float Walker::tilt

The documentation for this class was generated from the following files: