示例#1
0
    public override void _PhysicsProcess(float delta)
    {
        if (!changedRotation)
        {
            laserSprite.Rotate(1.571f + rotation);
            laserShape.Rotate(1.571f + rotation);
            changedRotation = true;
            Visible         = true;
        }

        MoveLocalX(velocity.x);
        MoveLocalY(velocity.y);
    }