mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add slippery group for nodes (players/items slide)
This commit is contained in:
parent
4381fe0a0a
commit
2ea26e655d
5 changed files with 49 additions and 17 deletions
|
@ -29,6 +29,7 @@ class Client;
|
|||
class Environment;
|
||||
class GenericCAO;
|
||||
class ClientActiveObject;
|
||||
class ClientEnvironment;
|
||||
class IGameDef;
|
||||
|
||||
enum LocalPlayerAnimations
|
||||
|
@ -78,7 +79,7 @@ public:
|
|||
void old_move(f32 dtime, Environment *env, f32 pos_max_d,
|
||||
std::vector<CollisionInfo> *collision_info);
|
||||
|
||||
void applyControl(float dtime);
|
||||
void applyControl(float dtime, ClientEnvironment *env);
|
||||
|
||||
v3s16 getStandingNodePos();
|
||||
v3s16 getFootstepNodePos();
|
||||
|
@ -143,7 +144,8 @@ public:
|
|||
void setCollisionbox(const aabb3f &box) { m_collisionbox = box; }
|
||||
|
||||
private:
|
||||
void accelerateHorizontal(const v3f &target_speed, const f32 max_increase);
|
||||
void accelerateHorizontal(const v3f &target_speed,
|
||||
const f32 max_increase, bool slippery);
|
||||
void accelerateVertical(const v3f &target_speed, const f32 max_increase);
|
||||
bool updateSneakNode(Map *map, const v3f &position, const v3f &sneak_max);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue