Polyhedren Configuration
by Daniel Neilsen · in Torque Game Engine · 01/15/2002 (12:34 pm) · 2 replies
Triggers have a variable called polyhedren where you can set the trigger size like so.
new Trigger(Town1Safe) {
position = "267.544 1279.71 52.7661";
rotation = "1 0 0 0";
scale = "1 1 1";
dataBlock = "SafeZone";
polyhedron = "0 0 0 30 0 0 0 30 0 0 0 10";
};
Does anyone here know how to configure this?? Is it possible to make a hexagonal trigger using this?
new Trigger(Town1Safe) {
position = "267.544 1279.71 52.7661";
rotation = "1 0 0 0";
scale = "1 1 1";
dataBlock = "SafeZone";
polyhedron = "0 0 0 30 0 0 0 30 0 0 0 10";
};
Does anyone here know how to configure this?? Is it possible to make a hexagonal trigger using this?
About the author
#2
The limit of four points is probably assumed in other functions that deal with this data as well.
01/16/2002 (4:39 pm)
Looking at the code I'd say you're probably out of luck (unless you modify the engine). setDataTypeTriggerPolyhedron expects to see 12 and only 12 numbers: x/y/z coords for an "origin" point, and then three vector definitions for cumulatively travelling to three subsequent points, starting from the origin point.The limit of four points is probably assumed in other functions that deal with this data as well.
Torque Owner Daniel Neilsen
anyone have any idea?