Tweaked ball physics.
This commit is contained in:
parent
7d3d7927fe
commit
20b0c66a17
@ -120,11 +120,11 @@ void Physics::addPlayer(float rad, Entity entity, float mass, unsigned indice)
|
|||||||
|
|
||||||
btRigidBody::btRigidBodyConstructionInfo info(mass,motion,sphere,inertia);
|
btRigidBody::btRigidBodyConstructionInfo info(mass,motion,sphere,inertia);
|
||||||
|
|
||||||
info.m_friction = 5;
|
info.m_friction = 0.9;
|
||||||
|
|
||||||
playerBall = new btRigidBody(info);
|
playerBall = new btRigidBody(info);
|
||||||
|
|
||||||
playerBall->setDamping(0.1f,0.3f);
|
playerBall->setDamping(0.1f,0.7f);
|
||||||
|
|
||||||
world->addRigidBody(playerBall);
|
world->addRigidBody(playerBall);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user