Struct gdnative::ConvexPolygonShape2D [−][src]
pub struct ConvexPolygonShape2D { /* fields omitted */ }
core class ConvexPolygonShape2D : Shape2D
(reference counted)
Base class
ConvexPolygonShape2D inherits Shape2D and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl ConvexPolygonShape2D
[src]
impl ConvexPolygonShape2D
pub fn as_shape_2d(&self) -> Shape2D
[src]
pub fn as_shape_2d(&self) -> Shape2D
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 set_point_cloud(&mut self, point_cloud: Vector2Array)
[src]
pub fn set_point_cloud(&mut self, point_cloud: Vector2Array)
pub fn set_points(&mut self, points: Vector2Array)
[src]
pub fn set_points(&mut self, points: Vector2Array)
pub fn get_points(&self) -> Vector2Array
[src]
pub fn get_points(&self) -> Vector2Array
pub 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) -> Resource
Up-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) -> f64
pub 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
) -> bool
pub 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
) -> bool
pub 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
) -> Variant
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
) -> 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
) -> Variant
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for ConvexPolygonShape2D
[src]
impl GodotObject for ConvexPolygonShape2D
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 ConvexPolygonShape2D
[src]
impl Deref for ConvexPolygonShape2D
type Target = Shape2D
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for ConvexPolygonShape2D
[src]
impl DerefMut for ConvexPolygonShape2D
impl Drop for ConvexPolygonShape2D
[src]
impl Drop for ConvexPolygonShape2D
Auto Trait Implementations
impl !Send for ConvexPolygonShape2D
impl !Send for ConvexPolygonShape2D
impl !Sync for ConvexPolygonShape2D
impl !Sync for ConvexPolygonShape2D