Tag Info

New answers tagged

1

The Wikipedia article on collision detection has this to say on the topic of matrices and collision detection; So we reduce the problem to that of tracking, from frame to frame, which intervals do intersect. We have three lists of intervals (one for each axis) and all lists are the same length (since each list has length n, the number of bounding boxes.) ...


1

Both ideas are actually correct, but the second code snippet seems wrong to me. If it is the same get_drag() in both cases, then it should operate on a scalar, and return a negative number. It should be something like: drag = v # No sign inversion here; get_drag() does it drag.normalise() fd = get_drag(length(v)) # Operate on a scalar drag ...



Top 50 recent answers are included