m_gravity was set on the line above, so the condition will always be false.
This commit is contained in:
parent
c3b2eaf3e2
commit
eb7a5b2ee6
@ -47,8 +47,6 @@ void Cake::init(const XMLNode &node, scene::IMesh *cake_model)
|
||||
float max_distance = 80.0f;
|
||||
m_gravity = 9.8f;
|
||||
|
||||
if (m_gravity < 0) m_gravity *= -1.0f;
|
||||
|
||||
node.get("max-distance", &max_distance );
|
||||
m_st_max_distance_squared = max_distance*max_distance;
|
||||
} // init
|
||||
|
Loading…
Reference in New Issue
Block a user