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
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SDL-Tutorial-3DWorld
Adam Kennedy <adamk@cpan.org>
SDL, OpenGL
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.
To install SDL::Tutorial::3DWorld, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL::Tutorial::3DWorld
CPAN shell
perl -MCPAN -e shell install SDL::Tutorial::3DWorld
For more information on module installation, please visit the detailed CPAN module installation guide.