I have a pyramid that is supposed to move in front of the player after a set period of time and distance. If the player is looking the direction that are moving, everything works fine. If the player moves one direction and looks another, than they never encounter the pyramid. What do I need to do to get the pyramid to move in front of their movement and not their camera? Here's my current code for the movement:
Pyramid.transform.position = Player.transform.position + Player.transform.forward * PyramidToPlayerMoveDistance;
Pyramid.transform.LookAt(Player.transform, Vector3.up);