29 #ifndef CHARACTER_CAMERA_H 30 #define CHARACTER_CAMERA_H 33 #include "scene/3d/camera.h" 35 class CharacterCamera :
public Camera {
37 OBJ_TYPE( CharacterCamera,
Camera );
68 float autoturn_tolerance;
87 bool use_lookat_target;
90 void _compute_camera();
99 virtual void _request_camera_update() {}
104 void _notification(
int p_what);
106 static void _bind_methods();
108 void _ray_collision(
Vector3 p_point,
Vector3 p_normal,
int p_subindex, ObjectID p_against,
int p_idx);
113 void set_camera_type(CameraType p_camera_type);
114 CameraType get_camera_type()
const;
116 void set_orbit(
const Vector2& p_orbit);
117 void set_orbit_x(
float p_x);
118 void set_orbit_y(
float p_y);
121 void set_height(
float p_height);
122 float get_height()
const;
124 void set_inclination(
float p_degrees);
125 float get_inclination()
const;
127 void set_max_orbit_x(
float p_max);
128 float get_max_orbit_x()
const;
130 void set_min_orbit_x(
float p_min);
131 float get_min_orbit_x()
const;
133 void rotate_orbit(
const Vector2& p_relative);
135 void set_distance(
float p_distance);
136 float get_distance()
const;
138 float get_min_distance()
const;
139 float get_max_distance()
const;
140 void set_min_distance(
float p_min);
141 void set_max_distance(
float p_max);
144 void set_clip(
bool p_enabled);
145 bool has_clip()
const;
147 void set_autoturn(
bool p_enabled);
148 bool has_autoturn()
const;
150 void set_autoturn_tolerance(
float p_degrees);
151 float get_autoturn_tolerance()
const;
153 void set_autoturn_speed(
float p_speed);
154 float get_autoturn_speed()
const;
156 void set_use_lookat_target(
bool p_use,
const Vector3 &p_lookat =
Vector3());
158 virtual Transform get_camera_transform()
const;
164 VARIANT_ENUM_CAST( CharacterCamera::CameraType );
167 #endif // CHARACTER_CAMERA_H
Definition: string_db.h:48