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 / MousePointerObjectHit ?

Author
Message
joachim
12
Years of Service
User Offline
Joined: 21st Feb 2012
Location: Vancouver Canada
Posted: 27th Dec 2012 21:26
Hi all,

I saw a 3d example where
one can move a cube with the mouse pointer.
I think it was from Lee Bamber but I can't
find it now, would you know where it is ?

Or do you know how to identify objects with
the mouse pointer ?
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 27th Dec 2012 23:32 Edited at: 27th Dec 2012 23:37
I think you are talking about my code snippet?
http://forum.thegamecreators.com/?m=forum_view&t=202106&b=41

Iam using it in my 3d placement editor here.
http://forum.thegamecreators.com/?m=forum_view&t=202472&b=48

Iam using tier 1 but should be easy to translate to tier 2.
The commands are almost the same.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
joachim
12
Years of Service
User Offline
Joined: 21st Feb 2012
Location: Vancouver Canada
Posted: 28th Dec 2012 18:04
Thanks Cliff,

the program I mean is one cube and is a program
somewhere, but your code helped me too.
The line "for t = 10001 to 10003"
where does the 10000 come from and why
doesn't it work 1001 to 1003 ?

If you know please let me know and
thanks again.
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 28th Dec 2012 23:49
When you let AppGameKit assign an ID to an object / sprite, it gives them an ID, it starts those ID's at 10000. That means that 10001 is the first 3d object loaded/ created

Login to post a reply

Server time is: 2024-05-04 06:24:43
Your offset time is: 2024-05-04 06:24:43