Struct gdnative::Physics2DDirectBodyStateSW [−][src]
pub struct Physics2DDirectBodyStateSW { /* fields omitted */ }
core class Physics2DDirectBodyStateSW : Physics2DDirectBodyState
(manually managed)
Base class
Physics2DDirectBodyStateSW inherits Physics2DDirectBodyState and all of its methods.
Methods
impl Physics2DDirectBodyStateSW
[src]
impl Physics2DDirectBodyStateSW
pub fn as_physics_2d_direct_body_state(&self) -> Physics2DDirectBodyState
[src]
pub fn as_physics_2d_direct_body_state(&self) -> Physics2DDirectBodyState
Up-cast.
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Physics2DDirectBodyState>
pub fn as_object(&self) -> Object
[src]
pub fn as_object(&self) -> Object
Up-cast.
pub fn get_total_gravity(&self) -> Vector2
[src]
pub fn get_total_gravity(&self) -> Vector2
pub fn get_total_linear_damp(&self) -> f64
[src]
pub fn get_total_linear_damp(&self) -> f64
pub fn get_total_angular_damp(&self) -> f64
[src]
pub fn get_total_angular_damp(&self) -> f64
pub fn get_inverse_mass(&self) -> f64
[src]
pub fn get_inverse_mass(&self) -> f64
pub fn get_inverse_inertia(&self) -> f64
[src]
pub fn get_inverse_inertia(&self) -> f64
pub fn set_linear_velocity(&mut self, velocity: Vector2)
[src]
pub fn set_linear_velocity(&mut self, velocity: Vector2)
pub fn get_linear_velocity(&self) -> Vector2
[src]
pub fn get_linear_velocity(&self) -> Vector2
pub fn set_angular_velocity(&mut self, velocity: f64)
[src]
pub fn set_angular_velocity(&mut self, velocity: f64)
pub fn get_angular_velocity(&self) -> f64
[src]
pub fn get_angular_velocity(&self) -> f64
pub fn set_transform(&mut self, transform: Transform2D)
[src]
pub fn set_transform(&mut self, transform: Transform2D)
pub fn get_transform(&self) -> Transform2D
[src]
pub fn get_transform(&self) -> Transform2D
pub fn set_sleep_state(&mut self, enabled: bool)
[src]
pub fn set_sleep_state(&mut self, enabled: bool)
pub fn is_sleeping(&self) -> bool
[src]
pub fn is_sleeping(&self) -> bool
pub fn get_contact_count(&self) -> i64
[src]
pub fn get_contact_count(&self) -> i64
pub fn get_contact_local_position(&self, contact_idx: i64) -> Vector2
[src]
pub fn get_contact_local_position(&self, contact_idx: i64) -> Vector2
pub fn get_contact_local_normal(&self, contact_idx: i64) -> Vector2
[src]
pub fn get_contact_local_normal(&self, contact_idx: i64) -> Vector2
pub fn get_contact_local_shape(&self, contact_idx: i64) -> i64
[src]
pub fn get_contact_local_shape(&self, contact_idx: i64) -> i64
pub fn get_contact_collider(&self, contact_idx: i64) -> Rid
[src]
pub fn get_contact_collider(&self, contact_idx: i64) -> Rid
pub fn get_contact_collider_position(&self, contact_idx: i64) -> Vector2
[src]
pub fn get_contact_collider_position(&self, contact_idx: i64) -> Vector2
pub fn get_contact_collider_id(&self, contact_idx: i64) -> i64
[src]
pub fn get_contact_collider_id(&self, contact_idx: i64) -> i64
pub fn get_contact_collider_object(&self, contact_idx: i64) -> Option<Object>
[src]
pub fn get_contact_collider_object(&self, contact_idx: i64) -> Option<Object>
pub fn get_contact_collider_shape(&self, contact_idx: i64) -> i64
[src]
pub fn get_contact_collider_shape(&self, contact_idx: i64) -> i64
pub fn get_contact_collider_shape_metadata(&self, contact_idx: i64) -> Variant
[src]
pub fn get_contact_collider_shape_metadata(&self, contact_idx: i64) -> Variant
pub fn get_contact_collider_velocity_at_position(
&self,
contact_idx: i64
) -> Vector2
[src]
pub fn get_contact_collider_velocity_at_position(
&self,
contact_idx: i64
) -> Vector2
pub fn get_step(&self) -> f64
[src]
pub fn get_step(&self) -> f64
pub fn integrate_forces(&mut self)
[src]
pub fn integrate_forces(&mut self)
pub fn get_space_state(&mut self) -> Option<Physics2DDirectSpaceState>
[src]
pub fn get_space_state(&mut self) -> Option<Physics2DDirectSpaceState>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for Physics2DDirectBodyStateSW
[src]
impl GodotObject for Physics2DDirectBodyStateSW
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 Physics2DDirectBodyStateSW
[src]
impl Deref for Physics2DDirectBodyStateSW
type Target = Physics2DDirectBodyState
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for Physics2DDirectBodyStateSW
[src]
impl DerefMut for Physics2DDirectBodyStateSW
Auto Trait Implementations
impl !Send for Physics2DDirectBodyStateSW
impl !Send for Physics2DDirectBodyStateSW
impl !Sync for Physics2DDirectBodyStateSW
impl !Sync for Physics2DDirectBodyStateSW