Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Impact Sensor Problem

Archive: 2 posts


I am currently looking into the option to enter vehicles in my top-down RPG Last Days: The Fall of Elithia.
In order to prevent problems when leaving a vehicle, I am trying to attach a piece of hologram to the vehicle, in which the player will spawn when he/she leaves the vehicle. On this piece of hologram, I placed an impact sensor.
The first time I set it to not include touching, not requiring a tag. I ended up with an impact sensor that would send a signal every ?0.1 seconds when not touching anything (other than the vehicle it was glued to). When it did touch another object, the signal was constant.
The second time, I used a thin piece of hologram, glued to the bottom of the first piece of hologram and to the bottom of the vehicle, to see if the sensor was detecting the vehicle it was glued to. I ended up with an impact sensor that would send a signal every ?0.3 seconds when not touching anything. It gave a constant signal when it did touch another object.
Messing with the 'Include Touching' setting didn't make a difference.
I also noticed that the sensor, when attached to a piece of hologram, would, regardless of the 'Include Touching' setting, always detect touching other holograms.

This obviously isn't working. I need the sensor to only activate when the piece of hologram is actually touching something, and it has to remain off when the hologram is not touching anything.

Does anyone know why the sensor is 'pulsing'? And is there a way to make the sensor only detect solid materials, instead of detecting solid materials and holograms? Or perhaps a way to detect touching any object, excluding objects marked with a certain tag?
2011-09-09 15:09:00

Author:
Aegonian
Posts: 65


Could you not do the same thing by using a player sensor? When you leave the vehicle the player sensor would turn off and you could detect it that way. Or a tag sensor if you're using a sackbot.

But to answer your question, I don't know why it would be pulsing, apparently the impact sensors are a bit dodgy. Or so I've heard (though I've never run into this problem with holograms and impact sensors). What you could do is pop a tag on everything you don't want to trigger, then wire up a normal impact sensor along with an inverted impact sensor requiring the tag to an AND gate. This means the AND gate won't trigger when in contact with the hologram mind when you may actually want it to, but if that's not a problem, then you're sorted.
2011-09-09 15:51:00

Author:
Xaif
Posts: 365


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.