Good vs. Evil

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,799
248
69 working with ncollide2d is, annoying. I think I am now at the part where I can add a Shape to the world (second parameter of the World.add method)
This needs a shapehandle.
In order to get a shapeHandle I need something that implements Shape.
A cuboid is probably the shape that I want, this needs a Vector.
A Vector is a type alias for Vector2.
A Vector2 is an alias of VectorN<N,U2>,
U2 is a nalgebra::base::dimension::U2

See the rabbit hole of types that I need to follow to get something? Also, the .add method needs a total of 5 params and the first one was just as confusing and rabbit holey. I am not looking forward to the third and fourth, which are
Code:
  collision_groups: CollisionGroups,
  query_type: GeometricQueryType<N>,