Ghost Sensor
2 posters
Ghost Sensor
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!!!
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
Re: Ghost Sensor
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
Re: Ghost Sensor
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...
I don't think that's what you are looking for...
Re: Ghost Sensor
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?
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
Re: Ghost Sensor
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
Cheers
Re: Ghost Sensor
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
Re: Ghost Sensor
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
Re: Ghost Sensor
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
Check it out:
http://www.crownandcutlass.com/features/technicaldetails/frustum.html
Similar topics
» Sensor again
» Contact Sensor
» Simple Collision Sensor
» Camera Collision Sensor
» Physic objects - ghost, invisible...
» Contact Sensor
» Simple Collision Sensor
» Camera Collision Sensor
» Physic objects - ghost, invisible...
Permissions in this forum:
You cannot reply to topics in this forum