Documentation/Entity Types/Base/MapCameraCurve.type

From NeoAxis 3D Engine Wiki

Jump to: navigation, search
Go to higher level

Contents

Description

MapCameraCurve.type allows you to create a motion path for the camera on the map. A motion path is created by placing key points on the map. To create a static camera use MapCamera.type.

To see the camera motion path, select the camera curve and hold the C key.

A usage example of the motion path for camera is the "Maps\CutSceneDemo\Map.map" map.

MapCameraCurve 01.jpg

Creation

To create a motion path for the camera, first place MapCameraCurve on the map . Then, after selecting the newly created object, add the rest of the points by clicking "Add point", under the properties window. The key point is defined by the MapCameraCurvePoint type. A new point is added after the selected one. If you need to add a point between two others, you have to select the first point and click "Add point". Also, the order of points can be changed by using the Time parameter.

MapCameraCurve 02.jpg

Properties

Properties of MapCameraCurve

For objects MapCameraCurve type special settings are collected into gropus "class MapCameraCurve", "class MapCurve" and "class MapCurvePoint".

Name Description
class Entity
Components List of attached components.
LogicClass Reference to the Logic Editor class. Read more about how to work with the Logic Editor class.
Name Object name.
Tags User defined information. Defined as keyvalue pairs. It is used for user's needs.
Type Object type. It can not be changed.
class MapCameraCurve
Fov Angle of the camera. If the value of 0 is set, the value of the Fov property of the map is used.
class MapCurve
AutomaticTimeStep The step for automatic time calculation for a point (Time property). If 0 is specified, then automatic calculation is turned off, and Time must be set manually.
CurveType Type of the curve. You can choose from UniformCubicSpline (cubic splines) and Bezier (Bezier curves).
class MapCurvePoint
Owner Defines the curve this point belongs to.
Time Defines the time at which we will be at this point. Changing the Time between points will modify their order.
class MapObject
Position Object position on the map.
Rotation Object rotation. The angle of rotation is set in degrees.
Scale Object scaling.
Map Editor
AutoVerticalAlignment Automatical alignment by height mode. Allows to set the value among 4 variants: None (without alignment ), ByBounds (by dimensions), ByBoundsWithRotation (by dimension with possible rotation), ByCenter (by center).
Layer The layer of the map these objects belong to.

Properties of MapCameraCurvePoint

For objects of the MapCameraCurvePoint type, special settings are grouped to "class MapCameraCurvePoint" and "class MapCurvePoint".

Name Description
class Entity
Components List of attached components.
LogicClass Reference to the Logic Editor class. Read more about how to work with the Logic Editor class.
Name Object name.
Tags User defined information. Defined as keyvalue pairs. It is used for user's needs.
Type Object type. It can not be changed.
class MapCameraCurvePoint
Fov Angle of the camera. If the value of 0 is set, the value of Fov property of the map is used.
class MapCurvePoint
Owner Defines the curve this point belongs to.
Time The point in time at which the camera will be at this point. By changing the Time property of two points, you can change their order.
class MapObject
Position Object position on the map.
Rotation Object rotation. The angle of rotation is set in degrees.
Scale Object scaling.
Map Editor
AutoVerticalAlignment Automatical alignment by height mode. Allows to set the value among 4 variants: None (without alignment ), ByBounds (by dimensions), ByBoundsWithRotation (by dimension with possible rotation), ByCenter (by center).
Layer The layer of the map these objects belong to.