Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with relations preceded with distance conditions #8

Open
JabberwockPL opened this issue Feb 21, 2018 · 1 comment
Open

Problem with relations preceded with distance conditions #8

JabberwockPL opened this issue Feb 21, 2018 · 1 comment

Comments

@JabberwockPL
Copy link

I think I have found the problem: there are four foreach loops in the processing procedure. actorPos is assigned in the second outermost loop:

SkeletonPoint actorPos = NormalizeJoint(skeleton.Joints[actor.Key]);

However, for distance testing it is reassigned:

e.g.: actorPos.X = actorPos.X - relativePos.X

the innermost loop is exited, but then the second innermost loop is processed with the modified actorPos. I think actorPos should be reassigned at the third loop, not the second one, or the values for distance should not actorPos, but use a different struture.

@LordAshes
Copy link
Owner

Great catch. Sounds like that could be the problem. I will verify and assuming that is the case it should be a simple bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants