ggj2020

My game project for Global Game Jam 2020!
git clone git://git.hellocld.com/ggj2020
Log | Files | Refs

commit b9057ef78f2df32be8d2d854650ce664d92f5163
parent d38cd5c4f792522c85f36739cdd82b292dde2e8d
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Sat,  1 Feb 2020 14:58:51 -0500

_get_velocity() now cubes the multiplier

This should do a better job of amplifying the latest movements in the
velocity queue

Diffstat:
MGrabbyHand.gd | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GrabbyHand.gd b/GrabbyHand.gd @@ -46,5 +46,5 @@ func is_grabbing() -> bool: func _get_velocity() -> Vector3: var vel = Vector3.ZERO for i in range(_velocity_queue.size()): - vel += (_velocity_queue[i] * (float(i) / _velocity_queue.size())) + vel += (_velocity_queue[i] * pow(float(i) / _velocity_queue.size(), 3)) return vel * _throw_force