feat: added getter for character to tunnels player

This commit is contained in:
Sara 2024-03-22 00:15:34 +01:00
parent fbe9638029
commit 1fdfca5bb7
2 changed files with 6 additions and 0 deletions

View file

@ -169,6 +169,10 @@ Ref<Curve> TunnelsPlayer::get_camera_rotation_ramp() const {
return this->camera_rotation_ramp;
}
PlayerCharacter *TunnelsPlayer::get_character() const {
return this->character;
}
float const TunnelsPlayer::ROTATION_SPEED{0.5f};
float const TunnelsPlayer::ROTATION_Y_MIN_INFLUENCE{7.f};
float const TunnelsPlayer::ROTATION_MARGIN{0.4f};

View file

@ -43,6 +43,8 @@ public:
void set_camera_rotation_ramp(Ref<Curve> curve);
Ref<Curve> get_camera_rotation_ramp() const;
PlayerCharacter *get_character() const;
private:
Vector2 move_input{0,0};
Vector2 mouse_location{0,0};