46
Modification Help / Re: Activate different parts of a brick?
« on: March 09, 2018, 04:30:20 PM »You cannot assume normals will be some variant or close variant of 0 0 1/0 1 0/1 0 0 as it does return the normal of the surface hit. For example, if your raycast hits a ramp brick or static shape, it will return the normal of the face hit
If you're just dealing with basic normal surfaces (no inclined or oblique surfaces), then you can just round each coordinate value.
If you're only creating triggers for normal surfaces, rounding within 0.001 (or something similar) should provide enough accuracy. Normals that fall outside that bound can be considered inclined or oblique, and simply be ignored. I'm not sure how you could create event triggers for inclined or oblique surfaces without creating an ungodly number of them.