[][src]Struct gdnative::api::CollisionObject

pub struct CollisionObject { /* fields omitted */ }

core class CollisionObject inherits Spatial (unsafe).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Class hierarchy

CollisionObject inherits methods from:

Safety

All types in the Godot API have "interior mutability" in Rust parlance. To enforce that the official thread-safety guidelines are followed, the typestate pattern is used in the Ref and TRef smart pointers, and the Instance API. The typestate Access in these types tracks whether the access is unique, shared, or exclusive to the current thread. For more information, see the type-level documentation on Ref.

Implementations

impl CollisionObject[src]

pub fn create_shape_owner(&self, owner: impl AsArg<Object>) -> i64[src]

pub fn capture_input_on_drag(&self) -> bool[src]

pub fn get_rid(&self) -> Rid[src]

pub fn get_shape_owners(&self) -> VariantArray<Shared>[src]

pub fn is_ray_pickable(&self) -> bool[src]

pub fn is_shape_owner_disabled(&self, owner_id: i64) -> bool[src]

pub fn remove_shape_owner(&self, owner_id: i64)[src]

pub fn set_capture_input_on_drag(&self, enable: bool)[src]

pub fn set_ray_pickable(&self, ray_pickable: bool)[src]

pub fn shape_find_owner(&self, shape_index: i64) -> i64[src]

pub fn shape_owner_add_shape(&self, owner_id: i64, shape: impl AsArg<Shape>)[src]

pub fn shape_owner_clear_shapes(&self, owner_id: i64)[src]

pub fn shape_owner_get_owner(
    &self,
    owner_id: i64
) -> Option<Ref<Object, Shared>>
[src]

pub fn shape_owner_get_shape(
    &self,
    owner_id: i64,
    shape_id: i64
) -> Option<Ref<Shape, Shared>>
[src]

pub fn shape_owner_get_shape_count(&self, owner_id: i64) -> i64[src]

pub fn shape_owner_get_shape_index(&self, owner_id: i64, shape_id: i64) -> i64[src]

pub fn shape_owner_get_transform(&self, owner_id: i64) -> Transform[src]

pub fn shape_owner_remove_shape(&self, owner_id: i64, shape_id: i64)[src]

pub fn shape_owner_set_disabled(&self, owner_id: i64, disabled: bool)[src]

pub fn shape_owner_set_transform(&self, owner_id: i64, transform: Transform)[src]

Methods from Deref<Target = Spatial>

pub fn force_update_transform(&self)[src]

pub fn gizmo(&self) -> Option<Ref<SpatialGizmo, Shared>>[src]

pub fn global_transform(&self) -> Transform[src]

pub fn get_parent_spatial(&self) -> Option<Ref<Spatial, Shared>>[src]

pub fn rotation(&self) -> Vector3D<f32, UnknownUnit>[src]

pub fn rotation_degrees(&self) -> Vector3D<f32, UnknownUnit>[src]

pub fn scale(&self) -> Vector3D<f32, UnknownUnit>[src]

pub fn transform(&self) -> Transform[src]

pub fn translation(&self) -> Vector3D<f32, UnknownUnit>[src]

pub fn get_world(&self) -> Option<Ref<World, Shared>>[src]

pub fn global_rotate(&self, axis: Vector3D<f32, UnknownUnit>, angle: f64)[src]

pub fn global_scale(&self, scale: Vector3D<f32, UnknownUnit>)[src]

pub fn global_translate(&self, offset: Vector3D<f32, UnknownUnit>)[src]

pub fn hide(&self)[src]

pub fn is_local_transform_notification_enabled(&self) -> bool[src]

pub fn is_scale_disabled(&self) -> bool[src]

pub fn is_set_as_toplevel(&self) -> bool[src]

pub fn is_transform_notification_enabled(&self) -> bool[src]

pub fn is_visible(&self) -> bool[src]

pub fn is_visible_in_tree(&self) -> bool[src]

pub fn look_at(
    &self,
    target: Vector3D<f32, UnknownUnit>,
    up: Vector3D<f32, UnknownUnit>
)
[src]

pub fn look_at_from_position(
    &self,
    position: Vector3D<f32, UnknownUnit>,
    target: Vector3D<f32, UnknownUnit>,
    up: Vector3D<f32, UnknownUnit>
)
[src]

pub fn orthonormalize(&self)[src]

pub fn rotate(&self, axis: Vector3D<f32, UnknownUnit>, angle: f64)[src]

pub fn rotate_object_local(&self, axis: Vector3D<f32, UnknownUnit>, angle: f64)[src]

pub fn rotate_x(&self, angle: f64)[src]

pub fn rotate_y(&self, angle: f64)[src]

pub fn rotate_z(&self, angle: f64)[src]

pub fn scale_object_local(&self, scale: Vector3D<f32, UnknownUnit>)[src]

pub fn set_as_toplevel(&self, enable: bool)[src]

pub fn set_disable_scale(&self, disable: bool)[src]

pub fn set_gizmo(&self, gizmo: impl AsArg<SpatialGizmo>)[src]

pub fn set_global_transform(&self, global: Transform)[src]

pub fn set_identity(&self)[src]

pub fn set_ignore_transform_notification(&self, enabled: bool)[src]

pub fn set_notify_local_transform(&self, enable: bool)[src]

pub fn set_notify_transform(&self, enable: bool)[src]

pub fn set_rotation(&self, euler: Vector3D<f32, UnknownUnit>)[src]

pub fn set_rotation_degrees(&self, euler_degrees: Vector3D<f32, UnknownUnit>)[src]

pub fn set_scale(&self, scale: Vector3D<f32, UnknownUnit>)[src]

pub fn set_transform(&self, local: Transform)[src]

pub fn set_translation(&self, translation: Vector3D<f32, UnknownUnit>)[src]

pub fn set_visible(&self, visible: bool)[src]

pub fn show(&self)[src]

pub fn to_global(
    &self,
    local_point: Vector3D<f32, UnknownUnit>
) -> Vector3D<f32, UnknownUnit>
[src]

pub fn to_local(
    &self,
    global_point: Vector3D<f32, UnknownUnit>
) -> Vector3D<f32, UnknownUnit>
[src]

pub fn translate(&self, offset: Vector3D<f32, UnknownUnit>)[src]

pub fn translate_object_local(&self, offset: Vector3D<f32, UnknownUnit>)[src]

pub fn update_gizmo(&self)[src]

Trait Implementations

impl Debug for CollisionObject[src]

impl Deref for CollisionObject[src]

type Target = Spatial

The resulting type after dereferencing.

impl DerefMut for CollisionObject[src]

impl GodotObject for CollisionObject[src]

type RefKind = ManuallyManaged

The memory management kind of this type. This modifies the behavior of the Ref smart pointer. See its type-level documentation for more information. Read more

impl QueueFree for CollisionObject[src]

impl SubClass<CollisionObject> for Area[src]

impl SubClass<CollisionObject> for RigidBody[src]

impl SubClass<CollisionObject> for PhysicsBody[src]

impl SubClass<CollisionObject> for VehicleBody[src]

impl SubClass<CollisionObject> for KinematicBody[src]

impl SubClass<CollisionObject> for StaticBody[src]

impl SubClass<CollisionObject> for PhysicalBone[src]

impl SubClass<Node> for CollisionObject[src]

impl SubClass<Object> for CollisionObject[src]

impl SubClass<Spatial> for CollisionObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SubClass<T> for T where
    T: GodotObject
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.