Enum CameraMode3D
Source pub enum CameraMode3D {
Chase,
Hood,
Orbit,
Aerial,
FreeFly,
CinematicDolly,
Cockpit,
CitySkylinePanorama,
CityRiverfrontBridge,
CityDowntownIntersection,
CityAerialDroneOrbit,
}
Expand description
Supported physically based 3D camera controller modes for World3D.
Dynamic third-person chase camera trailing behind the player vehicle.
Close low bumper and hood racing perspective mounted over the front axle.
Continuous 360-degree cinematic side orbital camera around the active vehicle.
High-altitude overhead helicopter tracking camera above the player vehicle.
Unrestricted 6-DOF free-fly camera controlled directly by user input.
Smooth cinematic dolly camera gliding along a sinusoidal showcase arc.
First-person driver cockpit camera mounted over the steering column looking through the windshield.
Elevated wide city skyline panorama overlooking the downtown towers and coastal bay.
Scenic riverfront and waterfront bridge overlook framing the shoreline promenade and traffic.
Street-level downtown boulevard intersection angle watching supercars and traffic pass by.
Sweeping high-altitude aerial drone orbit circling the entire coastal metropolis.
Source§Conversion and label helpers for CameraMode3D.
Converts a numeric mode index (0..=10) into a typed CameraMode3D.
§Arguments
u8 - Numeric camera mode index.
§Returns
Self - Corresponding CameraMode3D.
Converts this CameraMode3D into its stable numeric index (0..=10).
§Arguments
Self - Camera mode variant.
§Returns
Returns true when this camera mode is a world/city viewpoint rather than a vehicle-mounted angle.
§Arguments
Self - Camera mode variant.
§Returns
bool - true for city panorama, riverfront, downtown street, or aerial drone views.
Returns the concise human-readable English display label for this camera angle.
§Arguments
Self - Camera mode variant.
§Returns
&'static str - Human-readable camera label.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.