Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / object point to mouse x,y

Author
Message
AluminumPork
22
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 16th Jan 2004 23:16
Any words of wisdom concerning making a 3d object point towards the mouse x,y in a top down view? Thanks
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 17th Jan 2004 00:32
A cheap trick:

In a top down model, you can use the POINT OBJECT command to change the facing of your models. The mouse X is your x axis, your mouse Y is the z axis, and you set the the y axis to the same value as your pivoting model's Y position.

This is assuming that your 3D world has similar coordinates to the
screen. The trick comes in play when the scale is different or you need to apply an offset. This is not too difficult to do, but it varies from program to program.

The not so cheap trick:

In DBP, v5 or higher you can use the PICK OBJECT command to select floor tiles or other objects and return that object ID. With the object ID, you can get the tile's position and use that for your POINT OBJECT command.
--
TAZ

Login to post a reply

Server time is: 2026-07-07 17:32:07
Your offset time is: 2026-07-07 17:32:07