mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +00:00
adds fallbacks to the aiTurret's scannode to operate similar to the aimNode, letting folks skip out on adding either and just using pitch (or failing that, heading)
This commit is contained in:
parent
78107ed546
commit
b63d07616e
1 changed files with 5 additions and 8 deletions
|
|
@ -249,14 +249,11 @@ bool AITurretShapeData::preload(bool server, String &errorStr)
|
|||
// We have mShape at this point. Resolve nodes.
|
||||
scanNode = mShape->findNode("scanPoint");
|
||||
aimNode = mShape->findNode("aimPoint");
|
||||
if (aimNode == -1)
|
||||
{
|
||||
aimNode = pitchNode;
|
||||
}
|
||||
if (aimNode == -1)
|
||||
{
|
||||
aimNode = headingNode;
|
||||
}
|
||||
|
||||
if (scanNode == -1) scanNode = pitchNode;
|
||||
if (scanNode == -1) scanNode = headingNode;
|
||||
if (aimNode == -1) aimNode = pitchNode;
|
||||
if (aimNode == -1) aimNode = headingNode;
|
||||
|
||||
// Resolve state sequence names & emitter nodes
|
||||
isAnimated = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue