tweaks and continued gd4.4 upgrading
This commit is contained in:
@@ -624,10 +624,13 @@ func grab_moveable(body):
|
||||
held_item.set_collision_layer_value(1,false)
|
||||
|
||||
func hud_wobble(delta):
|
||||
const HUD_WOBBLE_MAX : float = 20
|
||||
const MOUSE_AMT = 10
|
||||
const VELOCITY_AMT = 100
|
||||
const HUD_SPEED = 10
|
||||
var viewport_height_adj = (get_viewport().size.y/1080)
|
||||
|
||||
var HUD_WOBBLE_MAX : float = 20 * viewport_height_adj
|
||||
var MOUSE_AMT = 10 * viewport_height_adj
|
||||
var VELOCITY_AMT = 100 * viewport_height_adj
|
||||
var HUD_SPEED = 10 * viewport_height_adj
|
||||
|
||||
var dir_mouse = Vector2(-mouse_input.x * MOUSE_AMT,-mouse_input.y * MOUSE_AMT)
|
||||
var velocity_dir_transformed = velocity.normalized() * global_basis
|
||||
var velocity_lengh_clamped = clamp(velocity.length(),-VELOCITY_AMT,VELOCITY_AMT)
|
||||
|
||||
Reference in New Issue
Block a user