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 AppGameKit Corner / 3D object hit command?

Author
Message
jlahtinen
14
Years of Service
User Offline
Joined: 26th Oct 2009
Location: Finland
Posted: 18th Feb 2016 13:58
How to check the object that has been hit?

Like GetObjectHit(1)? I cannot seem to find any useful command.
Harlequin
14
Years of Service
User Offline
Joined: 22nd Mar 2010
Location: Melbourne (AU)
Posted: 19th Feb 2016 03:18 Edited at: 20th Feb 2016 11:08
Hi jlahtinen,

for 3D object collisions, I use "ObjectRayCast" below is an example from my current project.
This example is the camera colliding with the object once it gets within 10 units of the object on the Z axis (which is the only direction my camera moves in this example)



Others who are more skilled than I would have better ways, but look at the following commands
ObjectRayCast
ObjectSphereCast
ObjectSphereSlide

They all have some good examples that while written for AppGameKit V1, should help (pretty sure they will compile)


cheers
It\'s late, I\'m tired, out of coffee and now I\'m wet.
jlahtinen
14
Years of Service
User Offline
Joined: 26th Oct 2009
Location: Finland
Posted: 27th Feb 2016 19:46
Oh, I really think they should add GetObjectHit command, much like in DBP.

Login to post a reply

Server time is: 2024-03-29 00:05:41
Your offset time is: 2024-03-29 00:05:41