How would I detect an impact on a FULL side without the puppet triggering it from the other sides?
The key word is "full" side impact detection.
So far to get impact detection on and from only one side, I've tried putting a thin platform inside the top side of a cube that the player can see but not touch, but sitting inside a frame that the player can't see but can collide with. The platform inside the top of the cube has the impact sensor on it.
The problem is that the impact sensor will still detect impact from all sides. If the invisible puppet collision frame on the sides is too thin, the puppet's collision box can nudge through it, even with high physics quality, and trigger the impact sensor of the top platform. But if I were to make the side frame thicker, then the puppet can stand on stand on top of the frame without touching and triggering the top platform in the center.
Anything good that I can do to sense an impact (or an alternative of it) from a FULL side of an object (the full top side of a cube) without triggering the sensor by pushing against the sides of the cube?
-
Hi,
Try combining an impact sensor with a few short range laser scopes.
The logic is one impact sensor to detect the impact and a few laser sensors pointed in different directions to figure out which side has an object.
You 'AND' these together to get the info you need
Hope this helps
John -
But the puppet's collision shape would just be pushing across the lasers when pushing against the sides without the puppet jumping on top of it just like it pushes through the collision frame and into the impact platform, would it not? I don't really see how this solves the problem. Same would go for a trigger zone.
-
Or do you mean lasers on the sides instead of pointed vertically?
-
I'm going to try trigger zones or lasers on the sides in combination (or in opposition) with the top impact sensor. That might make it more precise, but I still suspect some finicky issues will need to be worked out, if possible.
-
Hi,
Using labels you can get the laser to ignore the puppet :)
John -
But I don't want the lasers to ignore the puppet? The puppet is what needs to trigger the impact, but only from the top of the box.
-
'@jgr9 hi,
I know you want the puppet to trigger the impact, my suggestion says to "and" the impact sensor, to get the puppet collision, with laserscopes to figure out what side is colliding.
unless I'm missing something fundamental in your request?
John -
If I use say, 4 lasers, 1 at each top corner pointing up (though might require more in the middle or along the edges), how does this fix the issue of the puppet crossing those lasers while walking and pushing into the sides of the cube?
Like I said below, I think I'm going to try putting a trigger zone sticking outside the sides of the cube, but not above the top of it and set up that trigger zone (or zones) to block or cancel what the impact sensor would trigger. So the puppet needs to be above the sides of the cube or the impact sensor won't trigger what it's linked to because the zone(s) below and on the sides detecting the puppet will force it off / keep the sent impact trigger signal from reaching its destination.
Vous devez vous connecter pour laisser un commentaire.