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

PhysicsMaterial QML Type

Physics material.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

PhysicsMaterial QML Type

  • Import Statement: import QtQuick3DPhysics

  • Since: Qt 6.4

Detailed Description

This is the physics material. Friction uses the coulomb friction model, which is based around the concepts of 2 coefficients: the static friction coefficient and the dynamic friction coefficient (sometimes called kinetic friction). Friction resists relative lateral motion of two solid surfaces in contact. These two coefficients define a relationship between the normal force exerted by each surface on the other and the amount of friction force that is applied to resist lateral motion.

Property Documentation

 

dynamicFriction : float

This property defines the amount of friction applied between surfaces that are moving relative to each-other. The default value is 0.5.

restitution : float

This property defines the coefficient of restitution. The coefficient of restitution of two colliding objects is a fractional value representing the ratio of speeds after and before an impact, taken along the line of impact. A coefficient of restitution of 1 is said to collide elastically, while a coefficient of restitution < 1 is said to be inelastic. The default value is 0.5.

staticFriction : float

This property defines the amount of friction that is applied between surfaces that are not moving lateral to each-other. The default value is 0.5.

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