[][src]Struct gdnative::Physics2DServerSW

pub struct Physics2DServerSW { /* fields omitted */ }

core class Physics2DServerSW inherits Physics2DServer (unsafe).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Class hierarchy

Physics2DServerSW inherits methods from:

Methods

impl Physics2DServerSW[src]

pub unsafe fn to_physics_2d_server(&self) -> Physics2DServer[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = Physics2DServer>

pub const AREA_PARAM_GRAVITY_DISTANCE_SCALE: i64[src]

pub const BODY_MODE_STATIC: i64[src]

pub const SPACE_PARAM_CONTACT_RECYCLE_RADIUS: i64[src]

pub const DAMPED_STRING_REST_LENGTH: i64[src]

pub const BODY_STATE_CAN_SLEEP: i64[src]

pub const BODY_PARAM_MASS: i64[src]

pub const BODY_PARAM_GRAVITY_SCALE: i64[src]

pub const AREA_PARAM_GRAVITY: i64[src]

pub const AREA_SPACE_OVERRIDE_REPLACE: i64[src]

pub const JOINT_PIN: i64[src]

pub const DAMPED_STRING_DAMPING: i64[src]

pub const AREA_PARAM_LINEAR_DAMP: i64[src]

pub const JOINT_PARAM_MAX_BIAS: i64[src]

pub const SHAPE_CONCAVE_POLYGON: i64[src]

pub const AREA_PARAM_GRAVITY_POINT_ATTENUATION: i64[src]

pub const BODY_PARAM_FRICTION: i64[src]

pub const BODY_PARAM_LINEAR_DAMP: i64[src]

pub const BODY_PARAM_INERTIA: i64[src]

pub const AREA_SPACE_OVERRIDE_REPLACE_COMBINE: i64[src]

pub const BODY_MODE_CHARACTER: i64[src]

pub const AREA_PARAM_PRIORITY: i64[src]

pub const BODY_MODE_KINEMATIC: i64[src]

pub const AREA_SPACE_OVERRIDE_COMBINE_REPLACE: i64[src]

pub const DAMPED_STRING_STIFFNESS: i64[src]

pub const CCD_MODE_CAST_RAY: i64[src]

pub const SHAPE_SEGMENT: i64[src]

pub const BODY_STATE_TRANSFORM: i64[src]

pub const SHAPE_RAY: i64[src]

pub const AREA_BODY_REMOVED: i64[src]

pub const SHAPE_LINE: i64[src]

pub const SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION: i64[src]

pub const BODY_STATE_SLEEPING: i64[src]

pub const BODY_PARAM_MAX: i64[src]

pub const BODY_STATE_ANGULAR_VELOCITY: i64[src]

pub const SHAPE_RECTANGLE: i64[src]

pub const AREA_BODY_ADDED: i64[src]

pub const AREA_SPACE_OVERRIDE_DISABLED: i64[src]

pub const JOINT_DAMPED_SPRING: i64[src]

pub const AREA_SPACE_OVERRIDE_COMBINE: i64[src]

pub const SPACE_PARAM_BODY_TIME_TO_SLEEP: i64[src]

pub const SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: i64[src]

pub const SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS: i64[src]

pub const AREA_PARAM_ANGULAR_DAMP: i64[src]

pub const JOINT_PARAM_MAX_FORCE: i64[src]

pub const SHAPE_CIRCLE: i64[src]

pub const SHAPE_CAPSULE: i64[src]

pub const SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: i64[src]

pub const JOINT_GROOVE: i64[src]

pub const SHAPE_CONVEX_POLYGON: i64[src]

pub const SHAPE_CUSTOM: i64[src]

pub const BODY_PARAM_BOUNCE: i64[src]

pub const SPACE_PARAM_TEST_MOTION_MIN_CONTACT_DEPTH: i64[src]

pub const BODY_MODE_RIGID: i64[src]

pub const JOINT_PARAM_BIAS: i64[src]

pub const SPACE_PARAM_CONTACT_MAX_SEPARATION: i64[src]

pub const INFO_ACTIVE_OBJECTS: i64[src]

pub const AREA_PARAM_GRAVITY_VECTOR: i64[src]

pub const BODY_PARAM_ANGULAR_DAMP: i64[src]

pub const INFO_ISLAND_COUNT: i64[src]

pub const CCD_MODE_DISABLED: i64[src]

pub const AREA_PARAM_GRAVITY_IS_POINT: i64[src]

pub const INFO_COLLISION_PAIRS: i64[src]

pub const CCD_MODE_CAST_SHAPE: i64[src]

pub const BODY_STATE_LINEAR_VELOCITY: i64[src]

pub fn area_add_shape(
    &mut self,
    area: Rid,
    shape: Rid,
    transform: Transform2D<f32, UnknownUnit, UnknownUnit>,
    disabled: bool
)
[src]

pub fn area_attach_canvas_instance_id(&mut self, area: Rid, id: i64)[src]

pub fn area_attach_object_instance_id(&mut self, area: Rid, id: i64)[src]

pub fn area_clear_shapes(&mut self, area: Rid)[src]

pub fn area_create(&mut self) -> Rid[src]

pub fn area_get_canvas_instance_id(&self, area: Rid) -> i64[src]

pub fn area_get_object_instance_id(&self, area: Rid) -> i64[src]

pub fn area_get_param(&self, area: Rid, param: i64) -> Variant[src]

pub fn area_get_shape(&self, area: Rid, shape_idx: i64) -> Rid[src]

pub fn area_get_shape_count(&self, area: Rid) -> i64[src]

pub fn area_get_shape_transform(
    &self,
    area: Rid,
    shape_idx: i64
) -> Transform2D<f32, UnknownUnit, UnknownUnit>
[src]

pub fn area_get_space(&self, area: Rid) -> Rid[src]

pub fn area_get_space_override_mode(
    &self,
    area: Rid
) -> Physics2DServerAreaSpaceOverrideMode
[src]

pub fn area_get_transform(
    &self,
    area: Rid
) -> Transform2D<f32, UnknownUnit, UnknownUnit>
[src]

pub fn area_remove_shape(&mut self, area: Rid, shape_idx: i64)[src]

pub fn area_set_area_monitor_callback(
    &mut self,
    area: Rid,
    receiver: Option<Object>,
    method: GodotString
)
[src]

pub fn area_set_collision_layer(&mut self, area: Rid, layer: i64)[src]

pub fn area_set_collision_mask(&mut self, area: Rid, mask: i64)[src]

pub fn area_set_monitor_callback(
    &mut self,
    area: Rid,
    receiver: Option<Object>,
    method: GodotString
)
[src]

pub fn area_set_monitorable(&mut self, area: Rid, monitorable: bool)[src]

pub fn area_set_param(&mut self, area: Rid, param: i64, value: Variant)[src]

pub fn area_set_shape(&mut self, area: Rid, shape_idx: i64, shape: Rid)[src]

pub fn area_set_shape_disabled(
    &mut self,
    area: Rid,
    shape_idx: i64,
    disabled: bool
)
[src]

pub fn area_set_shape_transform(
    &mut self,
    area: Rid,
    shape_idx: i64,
    transform: Transform2D<f32, UnknownUnit, UnknownUnit>
)
[src]

pub fn area_set_space(&mut self, area: Rid, space: Rid)[src]

pub fn area_set_space_override_mode(&mut self, area: Rid, mode: i64)[src]

pub fn area_set_transform(
    &mut self,
    area: Rid,
    transform: Transform2D<f32, UnknownUnit, UnknownUnit>
)
[src]

pub fn body_add_central_force(
    &mut self,
    body: Rid,
    force: Vector2D<f32, UnknownUnit>
)
[src]

pub fn body_add_collision_exception(&mut self, body: Rid, excepted_body: Rid)[src]

pub fn body_add_force(
    &mut self,
    body: Rid,
    offset: Vector2D<f32, UnknownUnit>,
    force: Vector2D<f32, UnknownUnit>
)
[src]

pub fn body_add_shape(
    &mut self,
    body: Rid,
    shape: Rid,
    transform: Transform2D<f32, UnknownUnit, UnknownUnit>,
    disabled: bool
)
[src]

pub fn body_add_torque(&mut self, body: Rid, torque: f64)[src]

pub fn body_apply_central_impulse(
    &mut self,
    body: Rid,
    impulse: Vector2D<f32, UnknownUnit>
)
[src]

pub fn body_apply_impulse(
    &mut self,
    body: Rid,
    position: Vector2D<f32, UnknownUnit>,
    impulse: Vector2D<f32, UnknownUnit>
)
[src]

pub fn body_apply_torque_impulse(&mut self, body: Rid, impulse: f64)[src]

pub fn body_attach_canvas_instance_id(&mut self, body: Rid, id: i64)[src]

pub fn body_attach_object_instance_id(&mut self, body: Rid, id: i64)[src]

pub fn body_clear_shapes(&mut self, body: Rid)[src]

pub fn body_create(&mut self) -> Rid[src]

pub fn body_get_canvas_instance_id(&self, body: Rid) -> i64[src]

pub fn body_get_collision_layer(&self, body: Rid) -> i64[src]

pub fn body_get_collision_mask(&self, body: Rid) -> i64[src]

pub fn body_get_continuous_collision_detection_mode(
    &self,
    body: Rid
) -> Physics2DServerCCDMode
[src]

pub fn body_get_direct_state(
    &mut self,
    body: Rid
) -> Option<Physics2DDirectBodyState>
[src]

pub fn body_get_max_contacts_reported(&self, body: Rid) -> i64[src]

pub fn body_get_mode(&self, body: Rid) -> Physics2DServerBodyMode[src]

pub fn body_get_object_instance_id(&self, body: Rid) -> i64[src]

pub fn body_get_param(&self, body: Rid, param: i64) -> f64[src]

pub fn body_get_shape(&self, body: Rid, shape_idx: i64) -> Rid[src]

pub fn body_get_shape_count(&self, body: Rid) -> i64[src]

pub fn body_get_shape_metadata(&self, body: Rid, shape_idx: i64) -> Variant[src]

pub fn body_get_shape_transform(
    &self,
    body: Rid,
    shape_idx: i64
) -> Transform2D<f32, UnknownUnit, UnknownUnit>
[src]

pub fn body_get_space(&self, body: Rid) -> Rid[src]

pub fn body_get_state(&self, body: Rid, state: i64) -> Variant[src]

pub fn body_is_omitting_force_integration(&self, body: Rid) -> bool[src]

pub fn body_remove_collision_exception(&mut self, body: Rid, excepted_body: Rid)[src]

pub fn body_remove_shape(&mut self, body: Rid, shape_idx: i64)[src]

pub fn body_set_axis_velocity(
    &mut self,
    body: Rid,
    axis_velocity: Vector2D<f32, UnknownUnit>
)
[src]

pub fn body_set_collision_layer(&mut self, body: Rid, layer: i64)[src]

pub fn body_set_collision_mask(&mut self, body: Rid, mask: i64)[src]

pub fn body_set_continuous_collision_detection_mode(
    &mut self,
    body: Rid,
    mode: i64
)
[src]

pub fn body_set_force_integration_callback(
    &mut self,
    body: Rid,
    receiver: Option<Object>,
    method: GodotString,
    userdata: Variant
)
[src]

pub fn body_set_max_contacts_reported(&mut self, body: Rid, amount: i64)[src]

pub fn body_set_mode(&mut self, body: Rid, mode: i64)[src]

pub fn body_set_omit_force_integration(&mut self, body: Rid, enable: bool)[src]

pub fn body_set_param(&mut self, body: Rid, param: i64, value: f64)[src]

pub fn body_set_shape(&mut self, body: Rid, shape_idx: i64, shape: Rid)[src]

pub fn body_set_shape_as_one_way_collision(
    &mut self,
    body: Rid,
    shape_idx: i64,
    enable: bool,
    margin: f64
)
[src]

pub fn body_set_shape_disabled(
    &mut self,
    body: Rid,
    shape_idx: i64,
    disabled: bool
)
[src]

pub fn body_set_shape_metadata(
    &mut self,
    body: Rid,
    shape_idx: i64,
    metadata: Variant
)
[src]

pub fn body_set_shape_transform(
    &mut self,
    body: Rid,
    shape_idx: i64,
    transform: Transform2D<f32, UnknownUnit, UnknownUnit>
)
[src]

pub fn body_set_space(&mut self, body: Rid, space: Rid)[src]

pub fn body_set_state(&mut self, body: Rid, state: i64, value: Variant)[src]

pub fn body_test_motion(
    &mut self,
    body: Rid,
    from: Transform2D<f32, UnknownUnit, UnknownUnit>,
    motion: Vector2D<f32, UnknownUnit>,
    infinite_inertia: bool,
    margin: f64,
    result: Option<Physics2DTestMotionResult>
) -> bool
[src]

pub fn capsule_shape_create(&mut self) -> Rid[src]

pub fn circle_shape_create(&mut self) -> Rid[src]

pub fn concave_polygon_shape_create(&mut self) -> Rid[src]

pub fn convex_polygon_shape_create(&mut self) -> Rid[src]

pub fn damped_spring_joint_create(
    &mut self,
    anchor_a: Vector2D<f32, UnknownUnit>,
    anchor_b: Vector2D<f32, UnknownUnit>,
    body_a: Rid,
    body_b: Rid
) -> Rid
[src]

pub fn damped_string_joint_get_param(&self, joint: Rid, param: i64) -> f64[src]

pub fn damped_string_joint_set_param(
    &mut self,
    joint: Rid,
    param: i64,
    value: f64
)
[src]

pub fn free_rid(&mut self, rid: Rid)[src]

pub fn get_process_info(&mut self, process_info: i64) -> i64[src]

pub fn groove_joint_create(
    &mut self,
    groove1_a: Vector2D<f32, UnknownUnit>,
    groove2_a: Vector2D<f32, UnknownUnit>,
    anchor_b: Vector2D<f32, UnknownUnit>,
    body_a: Rid,
    body_b: Rid
) -> Rid
[src]

pub fn joint_get_param(&self, joint: Rid, param: i64) -> f64[src]

pub fn joint_get_type(&self, joint: Rid) -> Physics2DServerJointType[src]

pub fn joint_set_param(&mut self, joint: Rid, param: i64, value: f64)[src]

pub fn line_shape_create(&mut self) -> Rid[src]

pub fn pin_joint_create(
    &mut self,
    anchor: Vector2D<f32, UnknownUnit>,
    body_a: Rid,
    body_b: Rid
) -> Rid
[src]

pub fn ray_shape_create(&mut self) -> Rid[src]

pub fn rectangle_shape_create(&mut self) -> Rid[src]

pub fn segment_shape_create(&mut self) -> Rid[src]

pub fn set_active(&mut self, active: bool)[src]

pub fn shape_get_data(&self, shape: Rid) -> Variant[src]

pub fn shape_get_type(&self, shape: Rid) -> Physics2DServerShapeType[src]

pub fn shape_set_data(&mut self, shape: Rid, data: Variant)[src]

pub fn space_create(&mut self) -> Rid[src]

pub fn space_get_direct_state(
    &mut self,
    space: Rid
) -> Option<Physics2DDirectSpaceState>
[src]

pub fn space_get_param(&self, space: Rid, param: i64) -> f64[src]

pub fn space_is_active(&self, space: Rid) -> bool[src]

pub fn space_set_active(&mut self, space: Rid, active: bool)[src]

pub fn space_set_param(&mut self, space: Rid, param: i64, value: f64)[src]

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for Physics2DServerSW[src]

impl Copy for Physics2DServerSW[src]

impl Debug for Physics2DServerSW[src]

impl Deref for Physics2DServerSW[src]

type Target = Physics2DServer

The resulting type after dereferencing.

impl DerefMut for Physics2DServerSW[src]

impl FromVariant for Physics2DServerSW[src]

impl GodotObject for Physics2DServerSW[src]

impl ToVariant for Physics2DServerSW[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Export for T where
    T: GodotObject + ToVariant
[src]

type Hint = ()

A type-specific hint type that is valid for the type being exported.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.