Game Development Community

Create a object, with collision.

by Robert Stewart · in Torque Game Engine · 03/20/2005 (2:27 pm) · 6 replies

How would i do this? I would like it so I can shoot a ray at the object and get pos info. So it would work just like terrain, click and get the pos, I want the same thing applied to a circle or box. Any suggestions?

#1
03/20/2005 (2:33 pm)
Object selection:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7335

then you can script the rest
#2
03/20/2005 (8:11 pm)
I acually have object selection working, what im trying to do is add other things than just PlayerObjectType and the norm, im trying to make a BoxObjectType I guess, basically I just need to add a box or something preferrablly from c++, and then i would use something like object selection to click on it. I cant use a player ".dts" model because it only returns the center of its position, reason i need more than just the center is because i dont just want to select it, i also want to see the pos i clicked on when i selected it. Thanks for any help, and thanks for replying allready.
#4
03/21/2005 (10:22 am)
That looks like it should work, thanks.
#5
03/21/2005 (11:44 am)
Ok i have a problem with it, it works for clicking the object and getting some pos info, but it gets it from the square around the object, not the actual object. Im guessing thats ok if i could turn that square into a sphere. The square im talking about is the one in the editor when you select things. Thanks for the help
#6
03/21/2005 (12:33 pm)
NM, it works perfectly thanks for the help.