mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-23 22:29:28 +00:00
client projectile origin tweak
on the client, start the projectile simulation starting point at the rendered muzzlepoint (reminder server corrective packets will force it to converge as it goes along) origional report/revision suggestion couressy loljester: https://discord.com/channels/358091480004558848/358091480004558849/1476994844005109893
This commit is contained in:
parent
e5ac88e914
commit
45e2a00f20
1 changed files with 4 additions and 1 deletions
|
|
@ -873,8 +873,11 @@ bool Projectile::onAdd()
|
|||
}
|
||||
}
|
||||
if (mSourceObject.isValid())
|
||||
{
|
||||
processAfter(mSourceObject);
|
||||
|
||||
if (isClientObject())
|
||||
mSourceObject->getRenderMuzzlePoint(mSourceObjectSlot, &mCurrPosition);
|
||||
}
|
||||
// Setup our bounding box
|
||||
if (bool(mDataBlock->getProjectileShape()) == true)
|
||||
mObjBox = mDataBlock->getProjectileShape()->mBounds;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue