Hi, I'm trying to migrate a game from godot 3 to 4 and I can't seem to find the new equivalent
Is there a depreciated functions list somewhere?
func _integrate_forces(physics_state):
# set_applied_force(thrust.rotated(rotation))
# set_applied_torque(spin_power * rotation_dir)
var xform = physics_state.get_transform()
if xform.origin.x > screensize.x:
xform.origin.x = 0
if xform.origin.x < 0:
xform.origin.x = screensize.x
if xform.origin.y > screensize.y:
xform.origin.y = 0
if xform.origin.y < 0:
xform.origin.y = screensize.y
physics_state.set_transform(xform)