Struct gdnative::RectangleShape2D [−][src]
pub struct RectangleShape2D { /* fields omitted */ }core class RectangleShape2D : Shape2D (reference counted)
Base class
RectangleShape2D inherits Shape2D and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl RectangleShape2D[src]
impl RectangleShape2Dpub fn as_shape_2d(&self) -> Shape2D[src]
pub fn as_shape_2d(&self) -> Shape2DUp-cast.
pub fn new() -> Self[src]
pub fn new() -> Selfpub fn new_ref(&self) -> Self[src]
pub fn new_ref(&self) -> SelfCreates a new reference to the same object.
pub fn set_extents(&mut self, extents: Vector2)[src]
pub fn set_extents(&mut self, extents: Vector2)pub fn get_extents(&self) -> Vector2[src]
pub fn get_extents(&self) -> Vector2pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Methods from Deref<Target = Shape2D>
pub fn as_resource(&self) -> Resource[src]
pub fn as_resource(&self) -> ResourceUp-cast.
pub fn set_custom_solver_bias(&mut self, bias: f64)[src]
pub fn set_custom_solver_bias(&mut self, bias: f64)pub fn get_custom_solver_bias(&self) -> f64[src]
pub fn get_custom_solver_bias(&self) -> f64pub fn collide(
&mut self,
local_xform: Transform2D,
with_shape: Option<Shape2D>,
shape_xform: Transform2D
) -> bool[src]
pub fn collide(
&mut self,
local_xform: Transform2D,
with_shape: Option<Shape2D>,
shape_xform: Transform2D
) -> boolpub fn collide_with_motion(
&mut self,
local_xform: Transform2D,
local_motion: Vector2,
with_shape: Option<Shape2D>,
shape_xform: Transform2D,
shape_motion: Vector2
) -> bool[src]
pub fn collide_with_motion(
&mut self,
local_xform: Transform2D,
local_motion: Vector2,
with_shape: Option<Shape2D>,
shape_xform: Transform2D,
shape_motion: Vector2
) -> boolpub fn collide_and_get_contacts(
&mut self,
local_xform: Transform2D,
with_shape: Option<Shape2D>,
shape_xform: Transform2D
) -> Variant[src]
pub fn collide_and_get_contacts(
&mut self,
local_xform: Transform2D,
with_shape: Option<Shape2D>,
shape_xform: Transform2D
) -> Variantpub fn collide_with_motion_and_get_contacts(
&mut self,
local_xform: Transform2D,
local_motion: Vector2,
with_shape: Option<Shape2D>,
shape_xform: Transform2D,
shape_motion: Vector2
) -> Variant[src]
pub fn collide_with_motion_and_get_contacts(
&mut self,
local_xform: Transform2D,
local_motion: Vector2,
with_shape: Option<Shape2D>,
shape_xform: Transform2D,
shape_motion: Vector2
) -> Variantpub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Trait Implementations
impl GodotObject for RectangleShape2D[src]
impl GodotObject for RectangleShape2Dfn class_name() -> &'static str[src]
fn class_name() -> &'static strunsafe fn from_sys(obj: *mut godot_object) -> Self[src]
unsafe fn from_sys(obj: *mut godot_object) -> Selfunsafe fn to_sys(&self) -> *mut godot_object[src]
unsafe fn to_sys(&self) -> *mut godot_objectimpl Deref for RectangleShape2D[src]
impl Deref for RectangleShape2Dtype Target = Shape2D
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for RectangleShape2D[src]
impl DerefMut for RectangleShape2Dimpl Drop for RectangleShape2D[src]
impl Drop for RectangleShape2DAuto Trait Implementations
impl !Send for RectangleShape2D
impl !Send for RectangleShape2Dimpl !Sync for RectangleShape2D
impl !Sync for RectangleShape2D