BGE: Fix T41502 Path following jumping
authorJorge Bernal <jbernalmartinez@gmail.com>
Wed, 18 Feb 2015 22:24:02 +0000 (23:24 +0100)
committerJorge Bernal <jbernalmartinez@gmail.com>
Wed, 18 Feb 2015 22:24:02 +0000 (23:24 +0100)
commit5d0696052a00ca80043852ca891b1bbe0b70ff1b
treebbc455ac8d262452748e1a220fa2277351ac15b3
parentbd5154bb2c642d09b95ff8a2d71e404faa6f6f84
BGE: Fix T41502 Path following jumping

New Lock Z velocity parameter was added. This parameter avoid the micro-jumping.
By default it is actived except when you load an old file that it is deactived to keep former behaviour.

Additionally it was solved another issue related with the acceleration: That is the acceleration value was not taked into account and we had always the maximum linear velocity from the beginning of movement. Now the acceleration is taken into account until we reach the maximum velocity.
When you load an old file, the acceleration value is set to the maximum range (1000.f). This way we simulate a maximum velocity constant from the beginning of movement (former behaviour).

{F142195}

Reviewers: moguri, dfelinto, campbellbarton

Reviewed By: campbellbarton

Subscribers: sergey

Differential Revision: https://developer.blender.org/D1074
source/blender/blenkernel/intern/sca.c
source/blender/blenloader/intern/versioning_270.c
source/blender/editors/space_logic/logic_window.c
source/blender/makesdna/DNA_actuator_types.h
source/blender/makesrna/intern/rna_actuator.c
source/gameengine/Converter/KX_ConvertActuators.cpp
source/gameengine/Ketsji/KX_SteeringActuator.cpp
source/gameengine/Ketsji/KX_SteeringActuator.h