[−][src]Struct rg3d_physics::Physics
Implementations
impl Physics
[src]
pub fn new() -> Self
[src]
pub fn add_body(&mut self, body: RigidBody) -> Handle<RigidBody>
[src]
pub fn remove_body(&mut self, body_handle: Handle<RigidBody>)
[src]
pub fn add_static_geometry(
&mut self,
static_geom: StaticGeometry
) -> Handle<StaticGeometry>
[src]
&mut self,
static_geom: StaticGeometry
) -> Handle<StaticGeometry>
pub fn remove_static_geometry(&mut self, static_geom: Handle<StaticGeometry>)
[src]
pub fn borrow_body(&self, handle: Handle<RigidBody>) -> &RigidBody
[src]
pub fn borrow_body_mut(&mut self, handle: Handle<RigidBody>) -> &mut RigidBody
[src]
pub fn is_valid_body_handle(&self, handle: Handle<RigidBody>) -> bool
[src]
pub fn take_reserve_body(
&mut self,
handle: Handle<RigidBody>
) -> (Ticket<RigidBody>, RigidBody)
[src]
&mut self,
handle: Handle<RigidBody>
) -> (Ticket<RigidBody>, RigidBody)
pub fn put_body_back(
&mut self,
ticket: Ticket<RigidBody>,
body: RigidBody
) -> Handle<RigidBody>
[src]
&mut self,
ticket: Ticket<RigidBody>,
body: RigidBody
) -> Handle<RigidBody>
pub fn forget_ticket(&mut self, ticket: Ticket<RigidBody>)
[src]
pub fn set_enabled(&mut self, enabled: bool)
[src]
pub fn enabled(&self) -> bool
[src]
pub fn step(&mut self, delta_time: f32)
[src]
pub fn ray_cast(
&self,
ray: &Ray,
options: RayCastOptions,
result: &mut Vec<RayCastResult>
) -> bool
[src]
&self,
ray: &Ray,
options: RayCastOptions,
result: &mut Vec<RayCastResult>
) -> bool
Trait Implementations
impl Clone for Physics
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Physics
[src]
impl Default for Physics
[src]
impl Visit for Physics
[src]
fn visit(&mut self, name: &str, visitor: &mut Visitor) -> VisitResult
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Physics
impl Send for Physics
impl !Sync for Physics
impl Unpin for Physics
impl UnwindSafe for Physics
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Visit for T where
T: FieldData + 'static,
[src]
T: FieldData + 'static,