Struct gdnative::KinematicCollision2D [−][src]
pub struct KinematicCollision2D { /* fields omitted */ }
core class KinematicCollision2D : Reference
(reference counted)
Base class
KinematicCollision2D inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl KinematicCollision2D
[src]
impl KinematicCollision2D
pub fn as_reference(&self) -> Reference
[src]
pub fn as_reference(&self) -> Reference
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn get_position(&self) -> Vector2
[src]
pub fn get_position(&self) -> Vector2
pub fn get_normal(&self) -> Vector2
[src]
pub fn get_normal(&self) -> Vector2
pub fn get_travel(&self) -> Vector2
[src]
pub fn get_travel(&self) -> Vector2
pub fn get_remainder(&self) -> Vector2
[src]
pub fn get_remainder(&self) -> Vector2
pub fn get_local_shape(&self) -> Option<Object>
[src]
pub fn get_local_shape(&self) -> Option<Object>
pub fn get_collider(&self) -> Option<Object>
[src]
pub fn get_collider(&self) -> Option<Object>
pub fn get_collider_id(&self) -> i64
[src]
pub fn get_collider_id(&self) -> i64
pub fn get_collider_shape(&self) -> Option<Object>
[src]
pub fn get_collider_shape(&self) -> Option<Object>
pub fn get_collider_shape_index(&self) -> i64
[src]
pub fn get_collider_shape_index(&self) -> i64
pub fn get_collider_velocity(&self) -> Vector2
[src]
pub fn get_collider_velocity(&self) -> Vector2
pub fn get_collider_metadata(&self) -> Variant
[src]
pub fn get_collider_metadata(&self) -> Variant
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
pub fn as_object(&self) -> Object
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn init_ref(&mut self) -> bool
pub fn reference(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
pub fn unreference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for KinematicCollision2D
[src]
impl GodotObject for KinematicCollision2D
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for KinematicCollision2D
[src]
impl Deref for KinematicCollision2D
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for KinematicCollision2D
[src]
impl DerefMut for KinematicCollision2D
impl Drop for KinematicCollision2D
[src]
impl Drop for KinematicCollision2D
Auto Trait Implementations
impl !Send for KinematicCollision2D
impl !Send for KinematicCollision2D
impl !Sync for KinematicCollision2D
impl !Sync for KinematicCollision2D