Closed GoogleCodeExporter closed 9 years ago
additional information related to the above: the gamekit version was r1077
(compiled Debug profile on Visual Studio 10 Express).
Original comment by psp5...@gmail.com
on 7 May 2012 at 3:37
You are perfectly right. The movement have to be in local-space. When we added
support for real ghost objects inside blender we accidentaly removed support
for character-controller-mapping which hijacked the ghost-flag in the
blender-phyiscs-panel.
If you have a look at the setLinearVelocity(..) method in gkGameObject you see,
that there are two options. If the gameobject has a rigid body use
rigidbody-linvel or if it has a character use character-controller's
setVelocity. The character's one follows the character-direction so it is
local-space already, but the rigidbody's one use the
default-space(TRANSFORM_PARENT) which is obviously wrong.
Btw, the LogicDemo was/is broken at the moment because of exactly this issue.
What I will do now, is add Character-Support again and additionally fix
gkSteeringObject as you mentioned.
Thx for reporting
Original comment by thomas.t...@googlemail.com
on 8 May 2012 at 5:41
Many thanks for the informative update - it's taking a while, but I think I'm
beginning to get a good feel for the gamekit source code :)
Original comment by psp5...@gmail.com
on 8 May 2012 at 10:14
Ok, physics-character and rigidbodies using local linear-velocity are in trunk
now.
http://code.google.com/p/gamekit/source/detail?r=1078
http://code.google.com/p/gamekit/source/detail?r=1079
Again, thx for reporting.
Original comment by thomas.t...@googlemail.com
on 9 May 2012 at 12:26
Original issue reported on code.google.com by
psp5...@gmail.com
on 7 May 2012 at 12:51