Setting Camera Properties
-
Prerequisite
Description
You can change a camera’s properties easily using this block below, and it supports animations as well:
Parameters
-
Distance: The desired distance between the camera and the target point.
-
V-angle: The desired vertical view angle of the camera, between 0 (view from the top) and 180 (view from the bottom)
-
H-angle: The desired horizontal view angle of the camera (0 means looking forward along the Y-axis)
-
Z Offset: For a “follow camera”, its target is the position of the target object it is following by default. But you can assign a “Z Offset” to shift the camera’s target point along the Z axis up or down relative to the target object’s position.
-
X/Y/Z: The desired position of the camera’s target point (the point that the camera is looking at).
-
Period: If 0 or empty, then the 3 properties will be changed immediately. Otherwise, these properties will be gradually changed from their current values to the target values over this time period, creating an animated camera view.
Demo
In this program, we rotate the camera around the box over a period of 5 seconds, and also shift the target to the position with X of 90.
Try it yourself:
https://play.creaticode.com/projects/464cbfac0d73bb447e70713b
Learn More
-
-