SDL::Tutorial::3DWorld::Actor::GridCube - A grid-snapping 3D wireframe cube
The GridCube is a 1 metre white wireframe cube which will track it's position in float terms and can be moved around the game world like any other actor, but which will draw itself snapped to an imaginary 1 metre grid.
The position of the cube will be moved to ensure that the actual floating point location of the actor is inside the cube.
If the location of the cube is an exact integer, the cube will be located on the positive axis side (in all three dimension) of the actor position.
Bugs should be reported via the CPAN bug tracker at
Adam Kennedy <email@example.com>
Copyright 2010 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.