mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
misplaced paren
This commit is contained in:
parent
626e13f485
commit
3001f98c0b
@ -58,7 +58,7 @@ apply_friction(ColliderDef &def, LVector3f& vel, const LVector3f& force, float a
|
|||||||
if (vel!=LVector3f::zero()) {
|
if (vel!=LVector3f::zero()) {
|
||||||
float friction_coefficient=0.0f;
|
float friction_coefficient=0.0f;
|
||||||
// Determine the friction:
|
// Determine the friction:
|
||||||
if (fabs(force.dot(LVector3f::unit_z())<0.5f)) {
|
if (fabs(force.dot(LVector3f::unit_z()))<0.5f) {
|
||||||
// ...The force is nearly horizontal, it is probably a wall.
|
// ...The force is nearly horizontal, it is probably a wall.
|
||||||
physics_debug(" wall friction");
|
physics_debug(" wall friction");
|
||||||
friction_coefficient=0.0f;
|
friction_coefficient=0.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user