Bounce bullet1/4/2024 GroundRigidBod圜I.m_rollingFriction = 3.0f ītRigidBody* groundRigidBody = new btRigidBody(groundRigidBod圜I) ĭynamicsWorld->addRigidBody(groundRigidBody) btBroadphaseInterface* broadphase = new btDbvtBroadphase() ītDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration() ītCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration) ītSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver ĭynamicsWorld = new btDiscreteDynamicsWorld(dispatcher, broadphase, solver, collisionConfiguration) ĭynamicsWorld->setGravity(btVector3(0,+9.8,0)) // GLWidget - y axis points downwards !!! However this doesn't happen, even with very high values of m_restitution, which is supposed to regulate the bounciness.Īny clue why this is happening? This is torturing me for some hours now with no luck. ![]() I'm playing around with Bullet, I have a ground-floor and a ball, and I want the ball to fall and bounce on the ground.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |