Sunday, June 25, 2017

Collision Features

Oak uses a fork of rtreego for its collision with extended features like raycasting and trigger functions on collision with labelled entity types.

One of these features allows a programmer to receive collision events when collision begins and ends against certain labels, and another lets a programmer attach collision spaces to vectors so whenever a character moves around they'll take their collision space with them. These two features are demonstrated in the following code and animation of the resulting compiled program:


No comments:

Post a Comment