IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt Quick 3D - Robot Arm Example

Demonstrates how to add a C++ backend to a 3D project from Qt Design Studio.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt Quick 3D - Robot Arm Example

 
Sélectionnez
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick

QtObject {
    property int rotation1Angle
    property int rotation2Angle
    property int rotation3Angle
    property int rotation4Angle
    property int clawsAngle
    readonly property string status: "Ready"

    Behavior on rotation1Angle {
        SmoothedAnimation {
            velocity: 100
        }
    }

    Behavior on rotation2Angle {
        SmoothedAnimation {
            velocity: 80
        }
    }

    Behavior on rotation3Angle {
        SmoothedAnimation {
            velocity: 60
        }
    }

    Behavior on rotation4Angle {
        SmoothedAnimation {
            velocity: 60
        }
    }

    Behavior on clawsAngle {
        SmoothedAnimation {}
    }
}

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+