adonthell-devel
[Top][All Lists]
Advanced

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

[Adonthell-devel] eSpacePosition/Velocity


From: Tyler Nielsen
Subject: [Adonthell-devel] eSpacePosition/Velocity
Date: Thu, 1 Apr 2010 20:15:00 -0600

Kai,

Can you give me a quick rundown on what these are?  I see one comment in the code that stays:
// calculate position (= center of ellipse --> + 1) and velocity in eSpace
After the comment, is the line:
vector3<float> eSpacePosition (Position.x() / eRadius.x() + 1, Position.y() / eRadius.y() + 1, Position.z() / eRadius.z() + 1);
Given the comment, I would have expected something along the lines of:
vector3<float> eSpacePosition (Position.x() + eRadius.x() + 1, Position.y() + eRadius.y() + 1, Position.z() + eRadius.z() + 1);

I looks like it's really changing coordinate space also (so that one unit in eSpace = one Radius of the object).  I'm just not sure how this is useful, and how you would compare it to another object with different dimensions.

Tyler


reply via email to

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