Hi,
Is there a way to know when a MovingPlatform is actually moving? Would be quite helpful.
At the moment I'm checking if the MovementType is not Target (it's always moving in that case) or if GetRemainingDistance() > 0.01f:
I had to modify the MovingPlatform source file though, which I'd like to avoid because I'll have to do my changes again when I update.
Is there any more elegant way or would it be possible to include the property or something similar in one of the next releases?
Thanks!
Best regards,
Pat
Is there a way to know when a MovingPlatform is actually moving? Would be quite helpful.
At the moment I'm checking if the MovementType is not Target (it's always moving in that case) or if GetRemainingDistance() > 0.01f:
C#:
public bool IsMoving
{
get
{
if (m_MovementType != PathMovementType.Target)
return true;
if (GetRemainingDistance() > 0.01f)
return true;
return false;
}
}
I had to modify the MovingPlatform source file though, which I'd like to avoid because I'll have to do my changes again when I update.
Is there any more elegant way or would it be possible to include the property or something similar in one of the next releases?
Thanks!
Best regards,
Pat