week 2 prep
This commit is contained in:
parent
7824bcd6cd
commit
d0819ead77
@ -79,7 +79,7 @@ func _physics_process(delta: float) -> void:
|
||||
var c = get_slide_collision(i)
|
||||
#is this a bonkable thing?
|
||||
if c.get_collider() is RigidBody2D:
|
||||
c.get_collider().apply_central_impulse(-c.get_normal() * 100)
|
||||
forcePushSignal.emit(c.get_collider(), -c.get_normal() * 100)
|
||||
if rightRay.is_colliding():
|
||||
|
||||
#get the thing causing the collision
|
||||
|
||||
Loading…
Reference in New Issue
Block a user