mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-13 15:34:37 +00:00
Support the <float/> property in actors
This was SVN commit r7883.
This commit is contained in:
@@ -302,7 +302,7 @@ public:
|
||||
rotY = m_InterpolatedRotY;
|
||||
}
|
||||
|
||||
virtual CMatrix3D GetInterpolatedTransform(float frameOffset)
|
||||
virtual CMatrix3D GetInterpolatedTransform(float frameOffset, bool forceFloating)
|
||||
{
|
||||
if (!m_InWorld)
|
||||
{
|
||||
@@ -320,7 +320,7 @@ public:
|
||||
if (!cmpTerrain.null())
|
||||
baseY = cmpTerrain->GetExactGroundLevel(x, z);
|
||||
|
||||
if (m_Floating)
|
||||
if (m_Floating || forceFloating)
|
||||
{
|
||||
CmpPtr<ICmpWaterManager> cmpWaterMan(GetSimContext(), SYSTEM_ENTITY);
|
||||
if (!cmpWaterMan.null())
|
||||
|
||||
Reference in New Issue
Block a user