Ghost Sensor

View previous topic View next topic Go down

Ghost Sensor

Post  samson on 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

View user profile

Back to top Go down

Re: Ghost Sensor

Post  sio2interactive on Fri Jan 02, 2009 11:06 pm

Check SIO2sensor Wink
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Ghost Sensor

Post  samson on 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

View user profile

Back to top Go down

Re: Ghost Sensor

Post  sio2interactive on 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...
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Ghost Sensor

Post  samson on 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

View user profile

Back to top Go down

Re: Ghost Sensor

Post  sio2interactive on 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
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Ghost Sensor

Post  samson on 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

View user profile

Back to top Go down

Re: Ghost Sensor

Post  sio2interactive on 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
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Ghost Sensor

Post  samson on Sat Jan 03, 2009 4:54 pm

I will try that. A million thanks sio2!

samson

Posts : 27
Join date : 2008-11-29

View user profile

Back to top Go down

Re: Ghost Sensor

Post  sio2interactive on 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
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Ghost Sensor

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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