Skip to main content

ICameraBoundingBoxMethods

Trait ICameraBoundingBoxMethods 

Source
pub trait ICameraBoundingBoxMethods: ICameraBoundingBox {
    // Provided methods
    fn ctor(
        self,
        follow_pos: impl Into<Vector3>,
        look_at_pos: impl Into<Vector3>,
        screen_space_reprojection_ratio: impl Into<f32>,
    ) { ... }
    fn append(self, pos: impl Into<Vector3>, size: impl Into<f32>) { ... }
    fn create_box(self) { ... }
    fn get_box_center(self) -> Vector3 { ... }
    fn get_nearest_distance(self, fov: impl Into<f32>) -> f32 { ... }
    fn pos_in_camera(self, pos: impl Into<Vector3>) -> Vector3 { ... }
}

Provided Methods§

Source

fn ctor( self, follow_pos: impl Into<Vector3>, look_at_pos: impl Into<Vector3>, screen_space_reprojection_ratio: impl Into<f32>, )

.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32) overload

Source

fn append(self, pos: impl Into<Vector3>, size: impl Into<f32>)

Append(crate::unity_engine::vector3::Vector3, f32) overload

Source

fn create_box(self)

CreateBox() overload

Source

fn get_box_center(self) -> Vector3

GetBoxCenter() overload

Source

fn get_nearest_distance(self, fov: impl Into<f32>) -> f32

GetNearestDistance(f32) overload

Source

fn pos_in_camera(self, pos: impl Into<Vector3>) -> Vector3

PosInCamera(crate::unity_engine::vector3::Vector3) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ICameraBoundingBox> ICameraBoundingBoxMethods for __T

Available on crate feature combat-cameraboundingbox only.