Log inGet started
Package

FollowCamera.component

Newest version

README.md

FollowCamera

Keeps the entity it is attached to on the character's hips, every frame of play. It reads the local player from layers.active.players.localPlayer, caches the avatar descendant named Hips, then sets its own entity's position to that hip plus 3.8 across, 2.0 up and 6.2 back, and aims the entity at the hip 0.1 above its origin. In edit mode it returns at once, and it also returns while there is no local player, no avatar, or no Hips found, so it does nothing until a player has spawned with a body. Because it moves the entity it sits on, that entity needs a Camera component for the shot to follow; in MotionBricksEntry it is on Studio camera beside Camera, under the Motion Bricks performer prototype whose Performer body carries StudioControls and whose parts are wired into a PlayerPrototype and PlayerSpawn.

Used by: scenes.MotionBricksEntry.