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.