i am making game named Race the sun I need that for the player to move forward infinitely until it collides with object and the player spawns about 4 cm from the surface
Are you using rigid bodies? You can set the velocity at a constant value and the player will be moving forward infinitely.
If you are planning for an infinite runner though you may end up with precision issues after the player moves a lot e.g. 100.000 units. Usually on this games in instead of moving the player, we move the environment the opposite way.
can’t move the environment because the ground is too big I want to make that when the player is at the end of the ground and the ground rotates 90° and spawns in front of the player
project link:PlayCanvas 3D HTML5 Game Engine