mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +00:00
Improves logical checks for the default value so it's more sane and stable
Allows creation of polyhedrons via constructor with a origin and vector format, allowing to have default polyhedron values on triggers and physical zones
This commit is contained in:
parent
68ae0ca96d
commit
a0f8b29da7
5 changed files with 63 additions and 2 deletions
|
|
@ -114,6 +114,13 @@ PhysicalZone::PhysicalZone()
|
|||
force_mag = 0.0f;
|
||||
orient_force = false;
|
||||
fade_amt = 1.0f;
|
||||
|
||||
//Default up a basic square
|
||||
Point3F vecs[3] = { Point3F(1.0, 0.0, 0.0),
|
||||
Point3F(0.0, -1.0, 0.0),
|
||||
Point3F(0.0, 0.0, 1.0) };
|
||||
|
||||
mPolyhedron = Polyhedron(Point3F(-0.5, 0.5, 0.0), vecs);
|
||||
}
|
||||
|
||||
PhysicalZone::~PhysicalZone()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue