Why doesn’t this work? I’m making a grappler


I have a very simple raycast that is supposed to, when there’s a result, apply an impulse to the player in that direction.
Anybody know what could have gone wrong

The code on line 34 is not correct.

There is no entity of a collision component. I guess it just should be this.entity.rigidbody.applyForce().

3 Likes