CollisionNode QML Type
Base type for physics nodes. More...
|Import Statement:||import QtQuick3DPhysics|
- collisionShapes : list<CollisionShape>
- enableDebugView : bool
- enableTriggerReports : bool
- receiveContactReports : bool
- sendContactReports : bool
- bodyContact(CollisionNode *body, list<vector3D> positions, list<vector3D> impulses, list<vector3D> normals)
This is the base type for all physical (colliding) bodies.
This property contains the list of collision shapes. These shapes will be combined and act as a single rigid body when colliding.
enableDebugView : bool
This property enables drawing the shape's debug view.
enableTriggerReports : bool
This property determines whether this body will report when entering or leaving a trigger body.
receiveContactReports : bool
sendContactReports : bool
This property determines whether this body will send contact reports when colliding with other bodies.
This signal is emitted when there is a collision and receiveContactReports is set to
true in this body and sendContactReports is set to
true in the colliding body. The parameters positions, impulses and normals contain the position, impulse force and normal for each contact point at the same index.
Note: The corresponding handler is
© 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.