0 votes
by (8.2k points)

I’m facing issues With the VR game.

1. the health image does not reduce after that point, sir.

2. The enemies are facing away from the player position sir

3. The players don’t follow the teleported location of the player.

1 Answer

0 votes
by (8.2k points)

1. Kindly check whether the (Player Management) script is attached or not to the player for the Health.

2. You can check the direction of the parents. The direction of the child and parents is different.

3. For Teleport, you have to attach the script.

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class Teleportation : MonoBehaviour

{

    public Transform Player;

    public void TeleportPlayer()

    {

        Player.position = new Vector3(transform.position.x, Player.position.y, transform.position.z);

    }

}

TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

58 comments

105k users

...