Struct gdnative::Physics2DDirectBodyStateSW
[−]
[src]
pub struct Physics2DDirectBodyStateSW { /* fields omitted */ }
Methods from Deref<Target = Physics2DDirectBodyState>
pub fn get_total_gravity(&self) -> Vector2
[src]
pub fn get_total_linear_damp(&self) -> f64
[src]
pub fn get_total_angular_damp(&self) -> f64
[src]
pub fn get_inverse_mass(&self) -> f64
[src]
pub fn get_inverse_inertia(&self) -> f64
[src]
pub fn set_linear_velocity(&self, velocity: Vector2)
[src]
pub fn get_linear_velocity(&self) -> Vector2
[src]
pub fn set_angular_velocity(&self, velocity: f64)
[src]
pub fn get_angular_velocity(&self) -> f64
[src]
pub fn set_transform(&self, transform: Transform2D)
[src]
pub fn get_transform(&self) -> Transform2D
[src]
pub fn set_sleep_state(&self, enabled: bool)
[src]
pub fn is_sleeping(&self) -> bool
[src]
pub fn get_contact_count(&self) -> i64
[src]
pub fn get_contact_local_position(&self, contact_idx: i64) -> Vector2
[src]
pub fn get_contact_local_normal(&self, contact_idx: i64) -> Vector2
[src]
pub fn get_contact_local_shape(&self, contact_idx: i64) -> i64
[src]
pub fn get_contact_collider(&self, contact_idx: i64) -> Rid
[src]
pub fn get_contact_collider_position(&self, contact_idx: i64) -> Vector2
[src]
pub fn get_contact_collider_id(&self, contact_idx: i64) -> i64
[src]
pub fn get_contact_collider_object(
&self,
contact_idx: i64
) -> Option<GodotRef<Object>>
[src]
&self,
contact_idx: i64
) -> Option<GodotRef<Object>>
pub fn get_contact_collider_shape(&self, contact_idx: i64) -> i64
[src]
pub fn get_contact_collider_shape_metadata(&self, contact_idx: i64) -> Variant
[src]
pub fn get_contact_collider_velocity_at_position(
&self,
contact_idx: i64
) -> Vector2
[src]
&self,
contact_idx: i64
) -> Vector2
pub fn get_step(&self) -> f64
[src]
pub fn integrate_forces(&self)
[src]
pub fn get_space_state(&self) -> Option<GodotRef<Physics2DDirectSpaceState>>
[src]
Trait Implementations
impl GodotClass for Physics2DDirectBodyStateSW
[src]
type ClassData = Physics2DDirectBodyStateSW
type Reference = Physics2DDirectBodyStateSW
fn godot_name() -> &'static str
[src]
unsafe fn register_class(_desc: *mut c_void)
[src]
fn godot_info(&self) -> &GodotClassInfo
[src]
unsafe fn reference(
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference
[src]
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference
unsafe fn from_object(obj: *mut godot_object) -> Self
[src]
impl Deref for Physics2DDirectBodyStateSW
[src]
type Target = Physics2DDirectBodyState
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.