PhysicsBody QML Type

Base type for all concrete physical bodies. More...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

PhysicsNode

Inherited By:

CharacterController, DynamicRigidBody, and StaticRigidBody

Properties

Detailed Description

PhysicsBody is the base type for all objects that have a physical presence. These objects interact with other bodies. Some types are not influenced by the simulation, such as StaticRigidBody: They only influence other bodies. Other bodies are fully governed by the simulation.

See also Shapes and Bodies overview documentation.

Property Documentation

physicsMaterial : PhysicsMaterial

This property defines how the body behaves when it collides with or slides against other bodies in the simulation.


simulationEnabled : bool

This property defines if the body will partake in the physical simulation.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.