#ifndef PLAYERCAMGDS_H #define PLAYERCAMGDS_H #include #include #include #include #include namespace godot { class PlayerCam : public ClippedCamera { GODOT_CLASS(PlayerCam, ClippedCamera) private: String mode; Spatial* head; Spatial* neck; RigidBody* player; SpringArm* arm; Vector2 mouse_axis; float mouse_sensitivity; public: static void _register_methods(); PlayerCam(); ~PlayerCam(); void _init(); void _ready(); void _input(const Ref event); void attach(Node* new_parent, String c_mode, String extra_path = "."); void mouse_firstperson(); void mouse_thirdperson(); void mouse_arm(); void mouse_freecam(); }; } #endif