I have this projectile code in godot:
the projectiled object is an 2d missile.
extends RigidBody2D
# Called when the node enters the scene tree for the first time.
func _ready():
var angle = 60
var power = 1500000
var force = Vector2(-sin(angle) * power , cos(angle) * power) # Push to the right
apply_central_force(force)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
but a projectile in real life rotates in mid air, i want this to happen also in godot and the projectile be more realistic