FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Ghost Sensor

2 posters

Go down

Ghost Sensor Empty Ghost Sensor

Post  samson Fri Jan 02, 2009 10:36 pm

Hey everyone,

I would like to have a ghost object, that other physics objects can pass through, act as a sensor. I can't figure out a way to do this without making the object an actor.

Thank you!!!

samson

Posts : 27
Join date : 2008-11-29

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  sio2interactive Fri Jan 02, 2009 11:06 pm

Check SIO2sensor Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  samson Fri Jan 02, 2009 11:12 pm

Right, but the sensor only gets triggered in the event of a collision, correct? And if the object is a ghost, it doesn't seem to register when another object passes through it

samson

Posts : 27
Join date : 2008-11-29

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  sio2interactive Fri Jan 02, 2009 11:37 pm

The property ghost (as I explain in the tutorial06 video) is mainly used for collision maps... that will override the drawing but still keep a collision object... So it means that if its set to ghost and have physic properties ON, the object will collide with it...

I don't think that's what you are looking for...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  samson Fri Jan 02, 2009 11:41 pm

Thanks SIO2

Yea, that's not quite what I'm looking for. I don't want the object to have physics properties; I want the object to act as a sort of invisible sensor that can detect when an object passes through. Does that make sense?

samson

Posts : 27
Join date : 2008-11-29

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  sio2interactive Sat Jan 03, 2009 6:42 am

Hummm maybe give me more informations about what you are trying to achieve so I can check what is more suitable for your situation...


Cheers
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  samson Sat Jan 03, 2009 11:54 am

I would like to have a plane that is invisible, and that doesn't collide with objects - any object can pass through it. However, I would like to be able to detect when an object has passed through it.

samson

Posts : 27
Join date : 2008-11-29

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  sio2interactive Sat Jan 03, 2009 4:11 pm

Im not really sure exactly what you want to do but maybe SIO2sensordistance would do the trick... If the object distance is <= than the object radius it means that is pretty near that plane Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  samson Sat Jan 03, 2009 4:54 pm

I will try that. A million thanks sio2!

samson

Posts : 27
Join date : 2008-11-29

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  sio2interactive Sat Jan 03, 2009 5:46 pm

There's also this method that is testing a sphere within a plane to check if its in front, intersecting or behind... Im personally using similar method for the culling method of SIO2...

Check it out:

http://www.crownandcutlass.com/features/technicaldetails/frustum.html
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Ghost Sensor Empty Re: Ghost Sensor

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum