Last active
November 12, 2022 17:58
-
-
Save kistaaa/00aba21007dd912084a0dfd39881dd33 to your computer and use it in GitHub Desktop.
Godot Impulse 2D of "f" amount in a random direction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends RigidBody2D | |
var f = 500 | |
func _ready(): | |
apply_central_impulse(Vector2(rand_range(-f, f),rand_range(-f,f))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment