Struct gdnative::StaticBody
[−]
[src]
pub struct StaticBody { /* fields omitted */ }
Methods
impl StaticBody
[src]
pub fn set_constant_linear_velocity(&self, vel: Vector3)
[src]
pub fn set_constant_angular_velocity(&self, vel: Vector3)
[src]
pub fn get_constant_linear_velocity(&self) -> Vector3
[src]
pub fn get_constant_angular_velocity(&self) -> Vector3
[src]
pub fn set_friction(&self, friction: f64)
[src]
pub fn get_friction(&self) -> f64
[src]
pub fn set_bounce(&self, bounce: f64)
[src]
pub fn get_bounce(&self) -> f64
[src]
Methods from Deref<Target = PhysicsBody>
pub fn set_collision_layer(&self, layer: i64)
[src]
pub fn get_collision_layer(&self) -> i64
[src]
pub fn set_collision_mask(&self, mask: i64)
[src]
pub fn get_collision_mask(&self) -> i64
[src]
pub fn set_collision_mask_bit(&self, bit: i64, value: bool)
[src]
pub fn get_collision_mask_bit(&self, bit: i64) -> bool
[src]
pub fn set_collision_layer_bit(&self, bit: i64, value: bool)
[src]
pub fn get_collision_layer_bit(&self, bit: i64) -> bool
[src]
pub fn _set_layers(&self, mask: i64)
[src]
pub fn _get_layers(&self) -> i64
[src]
pub fn add_collision_exception_with(&self, body: Option<GodotRef<Object>>)
[src]
pub fn remove_collision_exception_with(&self, body: Option<GodotRef<Object>>)
[src]
Trait Implementations
impl GodotClass for StaticBody
[src]
type ClassData = StaticBody
type Reference = StaticBody
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 StaticBody
[src]
type Target = PhysicsBody
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.