PhysicsNode QML Type
Base type for all objects in the physics scene. More...
|Import Statement:||import QtQuick3D.Physics|
- collisionShapes : list<CollisionShape>
- receiveContactReports : bool
- receiveTriggerReports : bool
- sendContactReports : bool
- sendTriggerReports : bool
- bodyContact(PhysicsNode *body, list<vector3D> positions, list<vector3D> impulses, list<vector3D> normals)
- enteredTriggerBody(TriggerBody *body)
- exitedTriggerBody(TriggerBody *body)
PhysicsNode is the base type for all the objects that take part in the physics simulation. These objects have a position in three-dimensional space and a geometrical shape.
This property contains the list of collision shapes. These shapes will be combined and act as a single rigid body when interacting with other bodies.
See also Shapes and Bodies overview documentation.
receiveContactReports : bool
receiveTriggerReports : bool
This property determines whether this body will receive reports when entering or leaving a trigger body.
sendContactReports : bool
This property determines whether this body will send contact reports when colliding with other bodies.
sendTriggerReports : bool
This property determines whether this body will send reports when entering or leaving a trigger body.
This signal is emitted when there is a collision between a non-kinematic dynamic body and any other body. The receiveContactReports in this body and sendContactReports in the colliding body need to be set to true. The parameters body, positions, impulses and normals contain the other body, position, impulse force and normal for each contact point at the same index.
Note: The corresponding handler is
See also CharacterController::shapeHit.
© 2023 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.