Hi guys,
I’m a newbie with Defold and starting a prototype with Platformer game first. I’m having a problem that can’t understand how Defold works.
- I’m following Resolving kinematic collsions in Defold
- My result: Character sometimes be stutter / jitter from ground, pls help ref below video
Character’s delta position and message normal information logged as below:
DEBUG:SCRIPT: @ delta position vmath.vector3(0, -0.11111111938953, 0)
DEBUG:SCRIPT: @message normal vmath.vector3(0, 1, 0)
DEBUG:SCRIPT: @ delta position vmath.vector3(0, -0.11111111938953, 0)
DEBUG:SCRIPT: @message normal vmath.vector3(0, 1, 0)
DEBUG:SCRIPT: @ delta position vmath.vector3(0, -0.11111111938953, 0)
DEBUG:SCRIPT: @ delta position vmath.vector3(0, -0.33333334326744, 0)
DEBUG:SCRIPT: @message normal vmath.vector3(0, 1, 0)
DEBUG:SCRIPT: @ delta position vmath.vector3(0, -0.11111111938953, 0)
DEBUG:SCRIPT: @message normal vmath.vector3(0, 1, 0)
The frame has vmath.vector3(0, -0.33333334326744, 0)
is the cause of this stutter but I don’t know how to sync message handler into the update frame logic before rendering.
One more weird: If I moving my Character ( along x axis ) then the stutter disappear. vmath.vector3(0, -0.33333334326744, 0)
never logged.
Could anyone help explain this weird behavior? thanks.