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.

Newcomers DBPro Corner / Question about Unknown Object Collisions

Author
Message
theClassic
11
Years of Service
User Offline
Joined: 29th Jan 2013
Location:
Posted: 30th Jan 2013 03:38
I'm trying to figure out which object is hitting my camera object. I know the object ID of the camera but not the second object? Is there way to have when a collision occurs to print onto the screen which camera objects are hitting each other?
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Jan 2013 16:18
The command you're looking for is object collision(). By testing against object 0 the function returns the ID of the object it's colliding with, i.e.



TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax

Login to post a reply

Server time is: 2024-11-23 13:46:13
Your offset time is: 2024-11-23 13:46:13