# The drive loop: read held Input Triggers each tick and move the car prop. StepCar(Agent : agent, Body : creative_prop) : void = Current : transform = Body.GetTransform() var NextRot : rotation = Current.Rotation if (SteerLeft.IsHeld[Agent]): set NextRot = NextRot.ApplyWorldRotationZ(-0.06) if (SteerRight.IsHeld[Agent]): set NextRot = NextRot.ApplyWorldRotationZ(0.06) var NextPos : vector3 = Current.Translation if (Throttle.IsHeld[Agent]): set NextPos = Current.Translation + NextRot.GetLocalForward() * 350.0 Body.MoveTo(NextPos, NextRot, 0.06)