mirror of https://github.com/axmolengine/axmol.git
parent
5daaa6e49b
commit
02a9c9aae3
|
@ -773,12 +773,12 @@ void PhysicsBody::setResting(bool rest) const
|
||||||
void PhysicsBody::update(float delta)
|
void PhysicsBody::update(float delta)
|
||||||
{
|
{
|
||||||
// damping compute
|
// damping compute
|
||||||
/*if (_isDamping && _dynamic && !isResting())
|
if (_isDamping && _dynamic && !isResting())
|
||||||
{
|
{
|
||||||
_cpBody->v.x *= cpfclamp(1.0f - delta * _linearDamping, 0.0f, 1.0f);
|
_cpBody->v.x *= cpfclamp(1.0f - delta * _linearDamping, 0.0f, 1.0f);
|
||||||
_cpBody->v.y *= cpfclamp(1.0f - delta * _linearDamping, 0.0f, 1.0f);
|
_cpBody->v.y *= cpfclamp(1.0f - delta * _linearDamping, 0.0f, 1.0f);
|
||||||
_cpBody->w *= cpfclamp(1.0f - delta * _angularDamping, 0.0f, 1.0f);
|
_cpBody->w *= cpfclamp(1.0f - delta * _angularDamping, 0.0f, 1.0f);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsBody::setCategoryBitmask(int bitmask)
|
void PhysicsBody::setCategoryBitmask(int bitmask)
|
||||||
|
|
Loading…
Reference in New Issue