CodeBase - Compass Object Primitive
Return to the CodeBase listing
Category: Basic 3D
Version: 1.0
Information
Uploaded: 13th Apr 2007 23:35
Modified: 13th Apr 2007 23:37
Author: Visigoth
Summary
function to create a simple 4 pointed 3D compass. You can modify the length of the pointers and the size of the center sphere
Full Description
parameters are makecompass(object number, size of center sphere, lenght of pointers)<br /> for example, makecompass(1,10,60) would make a 3D compass as object number 1, the center sphere would be 10 units, and the pointers would be 60 units. It doesn't have pointers for the y-ccordinates, but can easily be modified for that, if you need it.<br /> After you run the function, you can call rotate object to set it at different angles or xrotate, yrotate,zrotate object, etc. Heck, you could probably lock it to screen to use it in a FPS I suppose.
Comments
No comments yet.