Vehicle
Description
- Derived from
-
SceneEntity
ITimestampConsumer
INameProperty
ILineThicknessProperty
Full source code is included in the Tinman 3D SDK download. |
A scene entity that represents a vehicle.
This class is intended to be an example for implementing a composite scene entity that represents a moving vehicle, for example an aircraft or a ground vehicles. It provides the following features and may be used as a starting point for implementing own entities:
-
Vehicle Mode (see VehicleTransform.Mode):
VehicleMode.Aircraft positioned via VehicleTransform.Aircraft using GeoPathSample values.
VehicleMode.Ground positioned via VehicleTransform.Ground using GroundPathSample value. -
3D Model (see Model):
A IModel is used to render the vehicle, optionally overriding the render materials with ModelColor and setting a minimum screen size with ModelSize. The model pose may be modified via ModelModifier. -
Geo Path Positioning (see Path):
The vehicle may be positioned automatically on a given IGeoPathBase, using the current animation ITimestampConsumer.Timestamp. -
Geo Path Track Model:
With PathTrackColor, PathTrackCurtain and PathTrackVisible, an aggregated GeoPathTrack entity can be configured to render the track of the geo path. -
Geo Path Trail Model:
With PathTrailCenter, PathTrailColor, PathTrailLength and PathTrailVisible, an aggregated GeoPathTrack entity can be configured to render a trail of the geo path.
Public / Attributes
ModelCenter
The coordinates in the local-space of the vehicle that corresponds to the location that correlates with the samples of its geo path, i.e. the origin of the yaw, pitch and roll rotations.
Defaults to Vec3D.Zero.
- See also
ModelColor
The uniform color of the vehicle model, which replaces all default materials.
Using an opaque color will make the whole model opaque, too. Using a transparent color will make the model transparent. Defaults to 0
.
- See also
ModelOpacity
The overall opacity of the model, when using the default materials.
Defaults to 1
.
- See also
Path
The geo path of the vehicle.
Setting the geo path of a vehicle to a non-null value will also set the vehicle mode:
-
If IGeoPathBase.Vertical is GeoPathValue.Height, VehicleTransform.Mode will be set to VehicleMode.Ground.
-
If IGeoPathBase.Vertical is GeoPathValue.Ellipsoid or GeoPathValue.Gravity, VehicleTransform.Mode will be set to VehicleMode.Aircraft.
Defaults to null
.
PathTrailCenter
The geo path trail center coordinates, relative to the geo path track.
The trail center can be used to fine-tune the position of the trail model, for example to align it with the wings of an aircraft.
Defaults to Vec3D.Zero.
- See also