Using custom shapes to detect objects and trigger events
I find myself with the need to use a specific shape to detect certain objects and materials (labelled) in my current project. The shape I'm looking for, in particular, is a prism with a base which has two straight lines and one curve one as sides: basically, it's a slice of a cylinder, a 'slice of cake' if you want. In LittleBigPlanet 3 (technically possible also in 2) I had two options to achieve this: either 1) use the tag sensor with an angle limit, which would result in a 'slice of cake' sensor range shape, useful for tags, or 2) a slice-of-cake shaped hologram material object with a impact sensor set to 'include touching' (this made the impact sensor detect things even on a material without physics such as the hologram: it would turn on when objects passed through the hologram shape, which is exactly what I need to do).
Now in Dreams, neither methods work as far as I've tried. The tag sensor method would use trigger zones, and while there are a lot of shapes available there is no way at the moment that I can see to choose a slice-of-cake shape for the trigger zone. Even just a specific part/section of the cylinder trigger zone shape would be enough for what I need to do but I haven't managed to find a way to tweak the trigger zone in order to have such a shape. The only idea I've had is using multiple trigger zones with cube shapes to 'cut' a main cylinder shape trigger zone and using and and not gates to achieve the corret detection output; however, I'd like to avoid doing this since in the final level there would be dozens of instances of this logic working at the same time, and making multiple 'slice of cake' zones of limited size would
I haven't found a way to replicate the hologram method as well. The Impact Sensor in Dreams lacks the 'include touching' functionality that the Impact Sensor had in LBP2/3, or better it does not work the same as it did in LBP. Specifically, the impact sensor does not work at all with objects that are not movable and/or not collidable: no one of its four outputs send signals when I have another, physical object go through the 'hologram like' object
If you have any ideas how to achieve this kind of custom detection with different 'trigger zone' shapes it'd be very appreciated, it's basically mandatory for my current project. Thanks!
-
Did you try sculpting the shape you want from the basic shapes?
-
I think you can set a.trigger.zone to a custom shape. If not a cone sunk into the ground might give you the shape you want.
Hooking up multiple detection zones to an or gate will help to.
There's also an option to hide an object in play mode. So for example you fould pin and object that ignores gravity etc is movable and can collide with stuff but stuff can collide with it. I think that should work. -
I did try sculpting the shape from what I had (and since I want to use it with the same function of a trigger zone I already expect to have to hide it in play mode); the problem is the fact that I couldn't find a way to have a 'trigger' turn on and send a signal when something entered/went through the invisible sculpt (as a unmovable object with no collisions or movable/anti-grav object with no collisions), which is what I'm looking for.
I was thinking of ways I could achieve the 'prism' trigger zone with the sensor gadget, I could sculpt it out of multiple trigger zones (one cylinder trigger zone and multiple cube trigger zone) and then use AND/NOT gates, but it means using a lot of them for each 'custom trigger zone', however as I said this isn't really efficient for what I want to do (multiple 'custom trigger zones' across the entire scene). I'll have to try again and see what I can do with the cone shape trigger zone, though.
Thanks for replying.
請登入寫評論。