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:
@@ -3162,6 +3162,7 @@ void CcdPhysicsEnvironment::ConvertObject(KX_GameObject *gameobj, RAS_MeshObject
|
||||
ci.m_stepHeight = isbulletchar ? shapeprops->m_step_height : 0.f;
|
||||
ci.m_jumpSpeed = isbulletchar ? shapeprops->m_jump_speed : 0.f;
|
||||
ci.m_fallSpeed = isbulletchar ? shapeprops->m_fall_speed : 0.f;
|
||||
ci.m_maxJumps = isbulletchar ? shapeprops->m_max_jumps : 0;
|
||||
|
||||
//mmm, for now, take this for the size of the dynamicobject
|
||||
// Blender uses inertia for radius of dynamic object
|
||||
|
||||
Reference in New Issue
Block a user