feat: added getter for character to tunnels player
This commit is contained in:
parent
fbe9638029
commit
1fdfca5bb7
|
@ -169,6 +169,10 @@ Ref<Curve> TunnelsPlayer::get_camera_rotation_ramp() const {
|
||||||
return this->camera_rotation_ramp;
|
return this->camera_rotation_ramp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlayerCharacter *TunnelsPlayer::get_character() const {
|
||||||
|
return this->character;
|
||||||
|
}
|
||||||
|
|
||||||
float const TunnelsPlayer::ROTATION_SPEED{0.5f};
|
float const TunnelsPlayer::ROTATION_SPEED{0.5f};
|
||||||
float const TunnelsPlayer::ROTATION_Y_MIN_INFLUENCE{7.f};
|
float const TunnelsPlayer::ROTATION_Y_MIN_INFLUENCE{7.f};
|
||||||
float const TunnelsPlayer::ROTATION_MARGIN{0.4f};
|
float const TunnelsPlayer::ROTATION_MARGIN{0.4f};
|
||||||
|
|
|
@ -43,6 +43,8 @@ public:
|
||||||
|
|
||||||
void set_camera_rotation_ramp(Ref<Curve> curve);
|
void set_camera_rotation_ramp(Ref<Curve> curve);
|
||||||
Ref<Curve> get_camera_rotation_ramp() const;
|
Ref<Curve> get_camera_rotation_ramp() const;
|
||||||
|
|
||||||
|
PlayerCharacter *get_character() const;
|
||||||
private:
|
private:
|
||||||
Vector2 move_input{0,0};
|
Vector2 move_input{0,0};
|
||||||
Vector2 mouse_location{0,0};
|
Vector2 mouse_location{0,0};
|
||||||
|
|
Loading…
Reference in a new issue