CameraAimProvider ​
Inherits: AimProvider < RefCounted
Aims through the camera: the ray from the screen centre (the crosshair) while the mouse is captured for mouse-look, otherwise the ray under the mouse pointer (which is also what a point-and-click game wants). See AimProvider.
Variables ​
bool | always_use_screen_center | false |
Methods ​
Dictionary | get_aim( entity: Entity, max_range: float ) |
Variable descriptions ​
bool always_use_screen_center = false ​
Use the screen centre even when the mouse is not captured (a game with a fixed crosshair)
Method descriptions ​
Dictionary get_aim( entity: Entity, max_range: float ) ​
Where the entity aims through the camera (the crosshair, or the mouse), up to a maximum range.