BGE: This patch adds a character wrapper (similar to the already implemented vehicle...
authorMitchell Stokes <mogurijin@gmail.com>
Sun, 4 Nov 2012 20:56:02 +0000 (20:56 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sun, 4 Nov 2012 20:56:02 +0000 (20:56 +0000)
commitf840bd4a9f89815ca213d8398c99865fc6d64e4c
treeb2c27e3ec22ac337120ab6f8db47b5071b6c49cb
parentcc77001416b385b289e7824cd5d71cad2bddfefb
BGE: This patch adds a character wrapper (similar to the already implemented vehicle wrapper) to control character physics options. Currently supported options are:
  * jump() -- causes the character to jump
  * onGround -- specifies whether or not the character is on the ground
  * gravity -- controls the "gravity" that the character physics uses for the character

More options could be added (such as jump speed, step height, make fall speed, max slope, etc).
13 files changed:
doc/python_api/rst/bge.constraints.rst
doc/python_api/rst/bge.types.rst
source/gameengine/Ketsji/CMakeLists.txt
source/gameengine/Ketsji/KX_CharacterWrapper.cpp [new file with mode: 0644]
source/gameengine/Ketsji/KX_CharacterWrapper.h [new file with mode: 0644]
source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
source/gameengine/Ketsji/KX_PythonInitTypes.cpp
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h
source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.h
source/gameengine/Physics/common/CMakeLists.txt
source/gameengine/Physics/common/PHY_ICharacter.h [new file with mode: 0644]
source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h