adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] stairs-back collision issue


From: Kai Sterker
Subject: Re: [Adonthell-devel] stairs-back collision issue
Date: Tue, 11 Sep 2012 23:03:32 +0200

On Thu, Sep 6, 2012 at 8:41 PM, Kai Sterker <address@hidden> wrote:

> So what I am left with is
> adding additional logging to the collision and deflection stages and
> then run tests on the working stairs and its opposite and compare the
> result, value for value to see where things differ.

Good news, everyone! Finally logged the right information, which
showed that in the cases where it does not work, velocity in Z
direction is constantly decreasing, until it reaches the minimum at
-10.4. That also explains why the character could manage the first 2
steps (while Z velocity is still near enough to zero, but gets stuck
afterwards. So effectively, the character is falling even though it
does (or at least is supposed to) rest on the stairs.

The reason for the issue is that moving::calculate_ground_pos()
appears to be wrong for the  stairs-back and stairs-right models,
while it appears to work correctly for the other two. Will attempt to
fix that tomorrow, as it's getting late today.

Collision code is sane after all, which is a big relieve :-).

Kai



reply via email to

[Prev in Thread] Current Thread [Next in Thread]