Hi,
I've a character which is being idle on a MovingPlatform. All corresponding remote characters spawn foot effects because they calculate the velocity but do not take MovingPlatforms into account.
For now I use the following to prevent spawning of FootEffects when on a MovingPlatform entirely.
CharacterFootEffects:FixedUpdate:312
I wonder how we could detect if the player is moving relative to the platform so we could spawn FootEffects in that case again.
Thanks!
I've a character which is being idle on a MovingPlatform. All corresponding remote characters spawn foot effects because they calculate the velocity but do not take MovingPlatforms into account.
For now I use the following to prevent spawning of FootEffects when on a MovingPlatform entirely.
CharacterFootEffects:FixedUpdate:312
Code:
if (raycastHit.collider.gameObject.layer == LayerManager.MovingPlatform) {
return;
}
I wonder how we could detect if the player is moving relative to the platform so we could spawn FootEffects in that case again.
Thanks!