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.

AppGameKit Classic Chat / From touch coordinate(or mouse) to 3d coordinate

Author
Message
hoyoyo80
8
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 13th May 2016 15:00
Hi, ive been messing around with agk 3d mode.

I need help translating touch coordinate to 3d coordinate.Ive made a cone and rotate it so the pointy part become front facing. Now i try to make it rotate toward 3d coordinate that is translate from touch coordinate.Can someone teach me.

Thanks
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th May 2016 08:44
i think you need this commands
Get3DVectorXFromScreen
Get3DVectorYFromScreen
Get3DVectorZFromScreen
here is an example:
http://www.appgamekit.com/documentation/Reference/3D/Get3DVectorXFromScreen.htm
AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-25 08:24:43
Your offset time is: 2024-11-25 08:24:43