BGE: Adding a Max Jumps value to the character physic window
Actually we only have a Python API that allows to change the max jumps value. The patch also allows non programmers to change the maximum numbers of jumps. Reviewers: panzergame, sybren, campbellbarton, lordloki, moguri, agoose77 Reviewed By: lordloki, moguri Projects: #game_engine Differential Revision: https://developer.blender.org/D1302
This commit is contained in:
@@ -533,6 +533,7 @@ bool CcdPhysicsController::CreateCharacterController()
|
||||
|
||||
m_characterController->setJumpSpeed(m_cci.m_jumpSpeed);
|
||||
m_characterController->setFallSpeed(m_cci.m_fallSpeed);
|
||||
m_characterController->setMaxJumps(m_cci.m_maxJumps);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user