#include <qafLaserCursorObj.h>
Inheritance diagram for qaf::LaserCursorObj:
Use the arrow keys to move the blue cursor. Use the mouse to control the yellow cursor.
A yellow "laser" is shot from the blue to the yellow cursor. If the laser touches an obstacle, a red line is drawn to display the contact point and normal.
Public Member Functions | |
LaserCursorObj (float _x, float _y) | |
void | update (int objLayer, float dt) |
void | render (int objLayer, float scrollX, float scrollY) |
Public Attributes | |
Vector2D | pos |
Vector2D | aim |
Vector2D | vel |