Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_ObjectActuator.cpp
| Context not available. | |||||
| m_angular_damping_active = false; | m_angular_damping_active = false; | ||||
| m_error_accumulator.setValue(0.0,0.0,0.0); | m_error_accumulator.setValue(0.0,0.0,0.0); | ||||
| m_previous_error.setValue(0.0,0.0,0.0); | m_previous_error.setValue(0.0,0.0,0.0); | ||||
| m_jump = false; | |||||
| return false; | return false; | ||||
| } else if (parent) | } else if (parent) | ||||
| { | { | ||||
| if (character->OnGround()) { | |||||
| m_jump = false; | |||||
| } | |||||
| if (m_bitLocalFlag.ServoControl) | if (m_bitLocalFlag.ServoControl) | ||||
| { | { | ||||
| // In this mode, we try to reach a target speed using force | // In this mode, we try to reach a target speed using force | ||||
| Context not available. | |||||
| { | { | ||||
| parent->ApplyRotation(m_drot,(m_bitLocalFlag.DRot) != 0); | parent->ApplyRotation(m_drot,(m_bitLocalFlag.DRot) != 0); | ||||
| } | } | ||||
| if (m_bitLocalFlag.CharacterJump) | if (m_bitLocalFlag.CharacterJump && !m_jump) { | ||||
| { | |||||
| character->Jump(); | character->Jump(); | ||||
| m_jump = true; | |||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| Context not available. | |||||