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_jumping = false; | |||||
| return false; | return false; | ||||
| } else if (parent) | } else if (parent) | ||||
| Context not available. | |||||
| { | { | ||||
| parent->ApplyRotation(m_drot,(m_bitLocalFlag.DRot) != 0); | parent->ApplyRotation(m_drot,(m_bitLocalFlag.DRot) != 0); | ||||
| } | } | ||||
| if (m_bitLocalFlag.CharacterJump) | |||||
| { | |||||
| character->Jump(); | if (m_bitLocalFlag.CharacterJump) { | ||||
| if (!m_jumping) { | |||||
| character->Jump(); | |||||
| m_jumping = true; | |||||
| } | |||||
| else if (character->OnGround()) | |||||
| m_jumping = false; | |||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| Context not available. | |||||