In the IsInRectangle function for rectangle3 you don't test the z coordinate.
| inline bool32
IsInRectangle(rectangle3 Rectangle, v3 Test)
{
bool32 Result = ((Test.X >= Rectangle.Min.X) &&
(Test.Y >= Rectangle.Min.Y) &&
(Test.X < Rectangle.Max.X) &&
(Test.Y < Rectangle.Max.Y));
return(Result);
}
|
And a small question: wouldn't it be good to rename dp and ddp to velocity and acceleration ? I'm never directly sure of which is which and in the last stream you mistook them for each other at some point.