73 std::vector<CollisionInfo> *collision_info);
76 std::vector<CollisionInfo> *collision_info);
173 void accelerate(
const v3f &target_speed,
const f32 max_increase_H,
174 const f32 max_increase_V,
const bool use_pitch);
179 const v3f &position_before_move,
const v3f &speed_before_move,
212 BS * 1.75f,
BS * 0.30f);
Definition clientobject.h:30
Definition clientenvironment.h:54
Definition environment.h:34
Definition content_cao.h:56
Definition localplayer.h:49
v3s16 getLightPosition() const
Definition localplayer.cpp:766
video::SColor light_color
Definition localplayer.h:105
bool m_can_jump
Definition localplayer.h:205
bool in_liquid
Definition localplayer.h:60
aabb3f m_sneak_node_bb_top
Definition localplayer.h:187
v3f getEyeOffset() const
Definition localplayer.cpp:771
bool m_sneak_ladder_detected
Definition localplayer.h:192
bool getAutojump() const
Definition localplayer.h:159
f32 m_pitch
Definition localplayer.h:210
v3f m_added_velocity
Definition localplayer.h:218
float last_yaw
Definition localplayer.h:87
u16 m_breath
Definition localplayer.h:208
void handleAutojump(f32 dtime, Environment *env, const collisionMoveResult &result, const v3f &position_before_move, const v3f &speed_before_move, f32 pos_max_d)
Definition localplayer.cpp:1180
void old_move(f32 dtime, Environment *env, f32 pos_max_d, std::vector< CollisionInfo > *collision_info)
Definition localplayer.cpp:830
bool touching_ground
Definition localplayer.h:58
Lighting & getLighting()
Definition localplayer.h:168
void move(f32 dtime, Environment *env, f32 pos_max_d)
Definition localplayer.cpp:534
void setCAO(GenericCAO *toset)
Definition localplayer.h:114
bool m_need_to_get_new_sneak_node
Definition localplayer.h:198
bool swimming_vertical
Definition localplayer.h:66
float m_eye_height
Definition localplayer.h:213
float m_autojump_time
Definition localplayer.h:216
u32 last_keyPressed
Definition localplayer.h:88
void setBreath(u16 breath)
Definition localplayer.h:123
Lighting m_lighting
Definition localplayer.h:224
aabb3f m_collisionbox
Definition localplayer.h:211
void setZoomFOV(float zoom_fov)
Definition localplayer.h:157
void accelerate(const v3f &target_speed, const f32 max_increase_H, const f32 max_increase_V, const bool use_pitch)
Definition localplayer.cpp:788
f32 last_movement_dir
Definition localplayer.h:93
bool in_liquid_stable
Definition localplayer.h:62
v3f last_position
Definition localplayer.h:84
void addPosition(const v3f &added_pos)
Definition localplayer.h:138
v3f m_position
Definition localplayer.h:182
ClientActiveObject * getParent() const
Definition localplayer.cpp:776
v3s16 getFootstepNodePos()
Definition localplayer.cpp:747
const aabb3f & getCollisionbox() const
Definition localplayer.h:154
void setYaw(f32 yaw)
Definition localplayer.h:127
LocalPlayerAnimation last_animation
Definition localplayer.h:99
u8 last_camera_fov
Definition localplayer.h:89
bool m_autojump
Definition localplayer.h:215
v3f getEyePosition() const
Definition localplayer.h:148
bool swimming_pitch
Definition localplayer.h:67
v3s16 m_sneak_node
Definition localplayer.h:185
void setCollisionbox(const aabb3f &box)
Definition localplayer.h:152
LocalPlayer(Client *client, const std::string &name)
Definition localplayer.cpp:60
bool m_sneak_node_exists
Definition localplayer.h:189
bool isDead() const
Definition localplayer.cpp:781
bool m_disable_jump
Definition localplayer.h:206
f32 gravity
Definition localplayer.h:69
bool last_camera_inverted
Definition localplayer.h:91
std::string hotbar_selected_image
Definition localplayer.h:103
void setPosition(const v3f &position)
Definition localplayer.h:133
float hurt_tilt_strength
Definition localplayer.h:108
f32 getPitch() const
Definition localplayer.h:131
void setEyeHeight(float eye_height)
Definition localplayer.h:150
bool m_disable_descend
Definition localplayer.h:207
u16 hp
Definition localplayer.h:57
u8 move_resistance
Definition localplayer.h:64
v3s16 m_standing_node
Definition localplayer.h:183
float getZoomFOV() const
Definition localplayer.h:156
v3s16 m_old_node_below
Definition localplayer.h:201
u16 getBreath() const
Definition localplayer.h:122
f32 last_movement_speed
Definition localplayer.h:92
f32 getYaw() const
Definition localplayer.h:128
float hurt_tilt_timer
Definition localplayer.h:107
u8 last_wanted_range
Definition localplayer.h:90
bool is_climbing
Definition localplayer.h:65
void addVelocity(const v3f &vel)
Definition localplayer.h:163
u32 maxHudId() const
Definition localplayer.h:120
Client * m_client
Definition localplayer.h:221
PlayerSettings m_player_settings
Definition localplayer.h:223
f32 m_sneak_node_bb_ymax
Definition localplayer.h:196
GenericCAO * m_cao
Definition localplayer.h:220
void applyControl(float dtime, Environment *env)
Definition localplayer.cpp:539
float m_zoom_fov
Definition localplayer.h:214
v3f getPosition() const
Definition localplayer.h:144
bool updateSneakNode(Map *map, const v3f &position, const v3f &sneak_max)
Definition localplayer.cpp:91
f32 m_yaw
Definition localplayer.h:209
GenericCAO * getCAO() const
Definition localplayer.h:110
float last_pitch
Definition localplayer.h:86
bool makes_footstep_sound
Definition localplayer.h:97
virtual ~LocalPlayer()
Definition localplayer.cpp:68
float last_animation_speed
Definition localplayer.h:100
PlayerSettings & getPlayerSettings()
Definition localplayer.h:170
v3s16 getStandingNodePos()
Definition localplayer.cpp:739
float camera_impact
Definition localplayer.h:95
std::string m_old_node_below_type
Definition localplayer.h:202
v3f last_speed
Definition localplayer.h:85
std::string hotbar_image
Definition localplayer.h:102
void setPitch(f32 pitch)
Definition localplayer.h:130
float getSlipFactor(Environment *env, const v3f &speedH)
Definition localplayer.cpp:1161
std::vector< HudElement * > hud
Definition player.h:236
#define BS
Definition constants.h:61
#define PLAYER_MAX_BREATH_DEFAULT
Definition constants.h:83
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
LocalPlayerAnimation
Definition localplayer.h:22
Definition activeobjectmgr.cpp:11
Describes ambient light settings for a player.
Definition lighting.h:39
Definition localplayer.h:30
static void settingsChangedCallback(const std::string &name, void *data)
Definition localplayer.cpp:51
bool continuous_forward
Definition localplayer.h:34
bool aux1_descends
Definition localplayer.h:36
void readGlobalSettings()
Definition localplayer.cpp:25
bool free_move
Definition localplayer.h:31
bool fast_move
Definition localplayer.h:33
bool autojump
Definition localplayer.h:38
bool always_fly_fast
Definition localplayer.h:35
void registerSettingsCallback()
Definition localplayer.cpp:38
bool pitch_move
Definition localplayer.h:32
void deregisterSettingsCallback()
Definition localplayer.cpp:46
bool noclip
Definition localplayer.h:37
Definition collision.h:44