pub struct CameraTarget {
pub anchor: AnchorId,
pub offset: [i32; 3],
}Expand description
The subject a Verb::Cutscene camera keeps framed (DSL v0.6): an
anchor plus an integer block offset from it, giving the world point every
dolly camera is aimed at. Same shape as a CameraWaypoint — a waypoint says
where the camera is, a target says what it looks at.
Fields§
§anchor: AnchorIdThe anchor the look target is relative to.
offset: [i32; 3]Integer [x, y, z] block offset from the anchor (default [0, 0, 0]).
Trait Implementations§
Source§impl Clone for CameraTarget
impl Clone for CameraTarget
Source§fn clone(&self) -> CameraTarget
fn clone(&self) -> CameraTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CameraTarget
impl Debug for CameraTarget
Source§impl<'de> Deserialize<'de> for CameraTarget
impl<'de> Deserialize<'de> for CameraTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CameraTarget
impl JsonSchema for CameraTarget
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CameraTarget
impl PartialEq for CameraTarget
Source§impl Serialize for CameraTarget
impl Serialize for CameraTarget
impl StructuralPartialEq for CameraTarget
Auto Trait Implementations§
impl Freeze for CameraTarget
impl RefUnwindSafe for CameraTarget
impl Send for CameraTarget
impl Sync for CameraTarget
impl Unpin for CameraTarget
impl UnsafeUnpin for CameraTarget
impl UnwindSafe for CameraTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more