Jump to content

How to change the camera gaia uses for terrain loading


namusanga
 Share

Go to solution Solved by Peter,

Recommended Posts

I'm creating a game that involves the player entering a tank, when he does, his camera is disabled and the tanks camera gets used, but Gaia continues to use the player's camera for loading and unloading which means it loads and unloads the wrong terrains. How can I tell Gaia that a different camera is now being used?

Link to comment
Share on other sites

  • Solution

Hi, the terrain loading during runtime for the player is tied to the "Terrain Loader" component - you would need to deactivate that on the old camera, and activate it on the new one for the time the player is inside the tank, then switch back when the player leaves again. Alternatively you could also put the terrain loader component on the player itself, if the transform of the player is moved together with the tank, if your game / camera setup allows for it.

Link to comment
Share on other sites

On 12/22/2021 at 11:52 AM, Peter said:

Hi, the terrain loading during runtime for the player is tied to the "Terrain Loader" component - you would need to deactivate that on the old camera, and activate it on the new one for the time the player is inside the tank, then switch back when the player leaves again. Alternatively you could also put the terrain loader component on the player itself, if the transform of the player is moved together with the tank, if your game / camera setup allows for it.

Ah that's good to know... one of the issues I always have with camera based systems is if you have a zoomed out 3rd person view things don't always move with the player.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Tell a friend

    Love Unity 3D World & Game Creation Tools - Canopy - Procedural Worlds? Tell a friend!
  • Interesting Articles

    1. 2

      I'm getting tired of doing islands and craters

    2. 2

      I'm getting tired of doing islands and craters

    3. 1

      Problems with latest Gaia Update

    4. 1

      Adding shoreline or waterline effects, beaches, river banks, etc.

    5. 1

      Just upgraded my Canopy to Pro

×
×
  • Create New...