mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge branch 'development' into style-cleanup
Conflicts: Engine/source/console/astNodes.cpp Engine/source/console/codeBlock.cpp Engine/source/console/compiledEval.cpp Engine/source/ts/collada/colladaAppMesh.cpp Engine/source/ts/tsShape.cpp Engine/source/ts/tsShapeConstruct.cpp
This commit is contained in:
commit
33ff180593
2053 changed files with 172002 additions and 69530 deletions
|
|
@ -892,7 +892,7 @@ void AITurretShape::_trackTarget(F32 dt)
|
|||
//if (pitch > M_PI_F)
|
||||
// pitch = -(pitch - M_2PI_F);
|
||||
|
||||
Point3F rot(pitch, 0.0f, -yaw);
|
||||
Point3F rot(-pitch, 0.0f, yaw);
|
||||
|
||||
// If we have a rotation rate make sure we follow it
|
||||
if (mHeadingRate > 0)
|
||||
|
|
|
|||
|
|
@ -1155,7 +1155,7 @@ void TurretShape::unpackUpdate(NetConnection *connection, BitStream *stream)
|
|||
void TurretShape::getWeaponMountTransform( S32 index, const MatrixF &xfm, MatrixF *outMat )
|
||||
{
|
||||
// Returns mount point to world space transform
|
||||
if ( index >= 0 && index < SceneObject::NumMountPoints) {
|
||||
if ( index >= 0 && index < ShapeBase::MaxMountedImages) {
|
||||
S32 ni = mDataBlock->weaponMountNode[index];
|
||||
if (ni != -1) {
|
||||
MatrixF mountTransform = mShapeInstance->mNodeTransforms[ni];
|
||||
|
|
@ -1180,7 +1180,7 @@ void TurretShape::getWeaponMountTransform( S32 index, const MatrixF &xfm, Matrix
|
|||
void TurretShape::getRenderWeaponMountTransform( F32 delta, S32 mountPoint, const MatrixF &xfm, MatrixF *outMat )
|
||||
{
|
||||
// Returns mount point to world space transform
|
||||
if ( mountPoint >= 0 && mountPoint < SceneObject::NumMountPoints) {
|
||||
if ( mountPoint >= 0 && mountPoint < ShapeBase::MaxMountedImages) {
|
||||
S32 ni = mDataBlock->weaponMountNode[mountPoint];
|
||||
if (ni != -1) {
|
||||
MatrixF mountTransform = mShapeInstance->mNodeTransforms[ni];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue