I have a bobbing animation that plays when a player moves. This sets the Rigidbody to awake.
So I'm checking the Rigidbody.IsAsleep to stop the animation.
A player moves and stops fine. Rigidbody states change fine too with respect to whether the player is moving or not.
But there are times, randomly, even if my player stops moving and the Rigidbody is asleep, the animation still continues playing. When I disable the Photon Transform View, the animation stops. When I reenable it, the animation starts again despite the player is stationary.
I don't want to change and break anything in the Photon Transform View script. Does anyone with experience know why this is happening? Please help.
So I'm checking the Rigidbody.IsAsleep to stop the animation.
A player moves and stops fine. Rigidbody states change fine too with respect to whether the player is moving or not.
But there are times, randomly, even if my player stops moving and the Rigidbody is asleep, the animation still continues playing. When I disable the Photon Transform View, the animation stops. When I reenable it, the animation starts again despite the player is stationary.
I don't want to change and break anything in the Photon Transform View script. Does anyone with experience know why this is happening? Please help.