BGE #18665: Servo control and relative motion
authorBenoit Bolsee <benoit.bolsee@online.be>
Mon, 18 May 2009 08:22:51 +0000 (08:22 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Mon, 18 May 2009 08:22:51 +0000 (08:22 +0000)
commit07fc2aa5268da7708a289fa785b0f0cbd9be2575
tree9bbe540d1853f2a259b64b8d51ad2bf142c3cdda
parent3bda88babfd422e2b40377d8d3be9a4bda7ed997
BGE #18665: Servo control and relative motion

Servo control motion actuator did not work as expected when the object
is moving on a moving platform.

This patch introduces a new Ref field in the servo motion actuator
to set a reference object for the velocity calculation.
You can set the object during the game using the actuator "reference"
attribute; use an object name or an object reference.

The servo controller takes into account the angular velocity of the
reference object to compute the relative local velocity.
source/blender/blenkernel/intern/sca.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_actuator_types.h
source/blender/src/buttons_logic.c
source/gameengine/Converter/KX_ConvertActuators.cpp
source/gameengine/Ketsji/KX_ObjectActuator.cpp
source/gameengine/Ketsji/KX_ObjectActuator.h
source/gameengine/PyDoc/GameTypes.py