collision-rs
collision-rs copied to clipboard
A collision extension to cgmath
Currently, implementation of Frustum has method for finding the spatial relation of a bound inside this frustum, but not for finding the points. Is this intentional?
This is a fairly common need for a lot of games. I know it's hard to implement well but I feel it's important to have this option for meshes like...
https://github.com/rustgd/collision-rs/blob/master/src/volume/sphere.rs#L61 seems to be incorrect. Specifically the computation of `tca`: ``` let tca = l.dot(r.direction); ``` where `tca` is intended to be the length of the projection of `l` onto...
Is this intentional?
Changing the height value in the [test](https://github.com/rustgd/collision-rs/blob/master/src/algorithm/minkowski/gjk/mod.rs#L759) will result in a fail, even though it shouldn't affect the impact time imo.
We should define what a border hit should do for all intersection tests.
It was introduced in #8, but I think we can improve it.
I've copied the Aabb2 code from here: https://github.com/rustgd/collision-rs/blob/master/benches/dbvt.rs ``` fn aabb2(minx: f32, miny: f32, maxx: f32, maxy: f32) -> Aabb2 { Aabb2::new(Point2::new(minx, miny), Point2::new(maxx, maxy)) } ``` but in my...