honey i shrunk the kids

You remember this movie?
I want to make a game where I can shrink myself in first person view with character 3d. I want to shrink and see everything bigger.

I can resize my character and camera but the camera still sees the objects in the same size. Does anybody have a camera script that can shrink the camera and the objects are much bigger. I can resize the objects and world I guess but this is pretty hard.

Check this out:

GameObject[] GameObjects = UnityEngine.Object.FindObjectsOfType<GameObject>() ;

foreach(object AnObject in GameObjects)
{
if(AnObject.activeInHierarchy == true && (AnObject != this.gameObject && AnObject != Camera.main.gameObject))
{
  AnObject.transform.localScale = AnObject.transform.localScale * 3;
}
}

it will scale all the game objects in the current scene by 3 except the player and the main camera :slight_smile: Hope I helped

uh you don’t need to do anything except ensure:

  1. the camera has decent near clip
  2. you change fov

This should give all the impression of size you need without scaling the entire world. All you would need to do is scale the player and move the camera closer to the player, and won’t cause problems. If you scale the world, it will be slow, look the same (or worse) and break the game in several ways if you use physics.

Cameras don’t see objects the same size, they simply get a lot closer.

1 Like

Indeed. Rescaling everything is a bad idea.

then you can try

public static void ShrinkPlayer()
{
GameObject PlayerObject = GameObject.FindGameObjectWithTag ("Player");

PlayerObject.transform.localScale = PlayerObject.transform.localScale/3;
//Now set the camera more closer to the player (can't tell how because I don't know your camera script)
}

Or just use a multiplier between 0 and 1, which you can assign to camera distance, camera offset and player scale.

1 Like

Thanks I just got a character mesh and I put the camera as a child of the character.
The Fov is not so smooth todo that, I tried various camera tricks and it would have been awesome to just scale the camera.