User Tools

Site Tools


move_camera_at_speed

This is an old revision of the document!


Move Camera At Speed


Moves the camera to the specified (X,Y,Z) coordinate or named camera position at a particular speed (in voxels per second). A target to aim the camera towards can optionally be specified. If using a camera position for the destination, this “look at target” will override the angle.

move_camera_at_speed(destination, speed, look_at_target)
ArgumentDescriptionTypeRequired
destinationDestination coordinate or camera position.Coordinate or StringYes
speedSpeed at which the move the camera (voxels/second).Coordinate or StringYes
look_at_targetCoordinate or entity to aim the camera towards.Coordinate or EntityNo

Lock Camera must be called before using this function to prevent the player from manually controlling the camera.

Example:

move_camera_at_speed(coord[0, 0, 0], 120)

Results:

Use the Move Camera At Speed function to …


Editor Node:

Visual Demo:

move_camera_at_speed.1492656833.txt.gz · Last modified: 2017/04/19 19:53 by justin