I have made the player and the enemy, and made the enemy chasing the player, both are using gravity and the same code:
transform.Translate(Vector3.forward * 5F * Time.deltaTime);
But when the enemy chasing the player, at start they can keep the distance, but after a period of time, the enemy will come closer and closer the player, and I try it without gravity, then it can keep the distance, But I need to use gravity.
So I want to ask is the gravity affect the movement between the gameobject? If so, can it be solve this problem?
thank you,
Sorry for my bad english, hope you guys can understand.
Are the player and enemy falling in freespace or are they on some sort ground?
– BluntweaponOn the same ground.
– manmanman