mtd/PCs/Mechanic/ClassCards/BombLauncher/weapon_bomb_launcher.gd

8 lines
260 B
GDScript3
Raw Normal View History

2024-02-22 06:22:22 +11:00
class_name BombLauncherWeapon extends ProjectileWeapon
func _ready() -> void:
super._ready()
var launch_range: float = stats.get_attribute("Range")
force = sqrt((launch_range * ProjectSettings.get_setting("physics/3d/default_gravity")) / sin(2.0 * 45.0))