3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: 3D Coordinates on screen  (Read 1557 times)

« on: March 18, 2008, 12:25:24 PM »
Hi,

How can i show the 3d coordinates of a moving object , in the form (x,y,z)


Thanks,
« Reply #1 on: March 19, 2008, 02:28:23 AM »
You need to write a simple script:

Code: [Select]
void Main()
{
   Vector3 location;
   iObjectLocation(OBJ_0,location);
   OUT_3 = location.x;
   OUT_6 = location.y;
   OUT_9 = location.z;
}

Add a Script object and 3 ValuePrint objects to your project. Link the Script to the 3 ValuePrint objects.

Double-click it in the Script item in the Object List to open its property dialog and paste the code above into its code window.

« Reply #2 on: April 14, 2010, 06:14:13 AM »
In the current version,
Is it possible to get objects (3D) coordinates without scripting?

I'd like to use eventOnValue,
directly linked to object and check for its current X, Y or Z values..

Or Valueprint, directly linked to object, to display its X, Y or Z..
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
Pages: [1]