Bulletphysics QML plugin + source code + Qt3D demos
-
wrote on 23 Mar 2018, 23:57 last edited by BinC
Hi, guys, would like to share Bulletphysics qml extension plugin with you:>
Demo videos:
Bullet Physics QML/Qt3D Demo (SphereShape and BoxShape):
https://www.youtube.com/watch?v=BS6QeKLuPOcMarble Maze Demo (HeightfieldTerrainShape and Generic6DofSpring2Constraint) :
https://www.youtube.com/watch?v=H31yGoCBI_AExcavator Simulation (HeightfieldTerrainShape and Constrains) :
https://www.youtube.com/watch?v=cdAX_U32A0MVehicle Simulation (HeightfieldTerrainShape and Constrains) :
https://www.youtube.com/watch?v=l9fTVQhWSnQSource Code:
https://bitbucket.org/csaga77/bullet-physics-qml-pluginBullet Physics QML Plugin provides Qt QML wrapper classes for bullet physics API which can be used together with Qt3D in physics simulation software.
The plugin is based on Qt 5.10 and Bullet 2.83.
Supported Bullet features
Rigid body dynamic simulation:
- AutoHeightmapImpactModifier
- CollisionObject
- DiscreteDynamicsWorld
- RigidBody
- ContackCallback
- RayTest
- HeightmapModifier
Collision shapes:
- BoxShape
- CapsuleShape
- CompoundShape
- ConeShape
- CylinderShape
- HeightfieldTerrainShape
- SphereShape
- StaticPlaneShape
- TriangleMeshShape
- UniformScalingShape
Constraints:
- ConeTwistConstraint
- FixedConstraint
- GearConstraint
- Generic6DofConstraint
- Generic6DofSpring2Constraint
- Generic6DofSpringConstraint
- Hinge2Constraint
- HingeAccumulatedAngleConstraint
- HingeConstraint
- Point2PointConstraint
- SliderConstraint
- UniversalConstraint
Supported Bullet related Qt3D render features
-
TriangleMesh: Defines a QML triangle mesh object which is used by TriangleMeshShape for physics simulation and TriangleMeshRenderer for 3D visulization.
-
TriangleMeshRenderer: render TriangleMesh.
Dependencies and supported platforms
Qt: 5.10 or above.
Bullet: 2.83
development platforms: Windows 7, osx.
target platforms: Windows 7, osx, iOS, Android.
gl3 and es2License
The Bullet Physics QML Plugin is licensed under the permissive zlib license. -
Hi,
Thanks for sharing !
-
Hi
Thank you for sharing.
Pretty cool :) -
wrote on 25 Mar 2018, 09:34 last edited by
My pleasure, adding more demo videos. I love QML/Qt3D:>
-
wrote on 27 Mar 2018, 06:43 last edited by
Wow! Cool!
-
wrote on 10 May 2022, 08:55 last edited by strahlex 5 Oct 2022, 08:55
Awesome project! How hard would it be to port the project to QtQuick 3D?
-
wrote on 24 Feb 2023, 02:52 last edited by
-
wrote on 24 Feb 2023, 09:02 last edited by
when I compiled the demos, setSpinningFriction was not a member of btRigidBody. but I have installed bulletPhysics 2.8.3 . I'd be sincerely grateful for your help.