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.

Dark GDK .NET / Camera hitting sphere

Author
Message
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 10th Jul 2009 13:25
I have a maze set up, and in the maze i have put spheres. how do i get it so when the camera passas through the sphere they will get points.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Jul 2009 13:56
One way would be to use the standard object collision functions by placing a Sphere or cube around the camera. Moving the camera, you would move the object simultaniously. Setting the object visibility to hidden will allow you to still detect whether the object and your spheres have collided. That way you can detect whether the camera has moved into a sphere.

I can put up some sample code a little later on if required.

Paul.

VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 12th Jul 2009 10:25
Dont worry about it. I used that idea before i looked on this post. thanks anyway if i hadnt thought of that i would of just got it off you

Login to post a reply

Server time is: 2024-04-20 16:33:42
Your offset time is: 2024-04-20 16:33:42