From 65ceb0e94c85ba45617ad7a5f1a7caed02f02931 Mon Sep 17 00:00:00 2001 From: jarommadsen Date: Fri, 29 Jul 2022 13:40:27 -0600 Subject: [PATCH] Remove obsolete C# methods from Using RigidBody2D (#5957) --- tutorials/physics/physics_introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/physics/physics_introduction.rst b/tutorials/physics/physics_introduction.rst index 1d22c25c5..9c6faba5e 100644 --- a/tutorials/physics/physics_introduction.rst +++ b/tutorials/physics/physics_introduction.rst @@ -293,16 +293,16 @@ For example, here is the code for an "Asteroids" style spaceship: public override void _IntegrateForces(Physics2DDirectBodyState state) { if (Input.IsActionPressed("ui_up")) - SetAppliedForce(_thrust.Rotated(Rotation)); + AppliedForce = _thrust.Rotated(Rotation); else - SetAppliedForce(new Vector2()); + AppliedForce = new Vector2(); var rotationDir = 0; if (Input.IsActionPressed("ui_right")) rotationDir += 1; if (Input.IsActionPressed("ui_left")) rotationDir -= 1; - SetAppliedTorque(rotationDir * _torque); + AppliedTorque = rotationDir * _torque; } }