lanice / elemate

A sandbox game.
8 stars 0 forks source link

Particle collision 92 #124

Closed kateyy closed 10 years ago

kateyy commented 10 years ago

This adds particle collision events, handled in the collision.lua. Collision detection is implemented in the particlecollision.cpp:

Adds an abstract Drawable superclass with: vao/vbo member, bounding box getter (unset per default). "ShadowingDrawable" superclass for drawables that implement the "drawDepthMap" functions etc.

Adds an (generic) DebugStep, that may be used to render any helpful debug infos: enabled with F1. This renders the bounding boxes of all drawables that set their box (as wireframe), and the the bounding box of the collision volume (solid box), which you will probably only see if the collision test gets too slow.

Also enables the lua wrapper to send glm::vec3's to lua scripts (but not the way back, yet).

Seems too much for one pull request..