Page MenuHome

Adding split impulse option to the game engine
AbandonedPublic

Authored by Inês Almeida (brita_) on Aug 7 2014, 3:10 PM.

Details

Summary

Reduces extra velocity on object penetration

Diff Detail

Event Timeline

Inês Almeida (brita_) retitled this revision from to Adding split impulse option to the game engine.
Inês Almeida (brita_) updated this object.
Inês Almeida (brita_) set the repository for this revision to rB Blender.

Is this supposed to be an option visible on the interface?

I think it is a good option to improve stability in certain cases. Additionally with the UseSplitImpulse option perhaps it should be necessary to add an editable splitImpulsePenetrationThreshold slider.

On other matters, this patch misses API doc edits in doc/python_api/rst/bge.constrains.rst and also the patch doesn't apply correctly. It is necessary to do branch/master update.

source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
111

Should be "setUseSplitImpulse (bool splitimpulse)\n" instead of "gPySetUseSplitImpulsedoc\n".

Sergey Sharybin (sergey) added inline comments.
source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
1

Tsk tsk ;)

source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
412

I think returning NULL without setting an error is an issue for Python.

BGE was removed in Blender 2.80 this patch is being closed as a result.