physx 0.8.0

High-level Rust interface for Nvidia PhysX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Author: Tom Olsson <tom.olsson@embark-studios.com>
// Copyright © 2019, Embark Studios, all rights reserved.
// Created: 12 June 2019

#![warn(clippy::all)]

/*!


*/
use super::super::rigid_actor::RigidActor;
use physx_sys::{PxContactPair, PxContactPairPoint};

pub trait Collidable {
    fn on_collide(&mut self, other: &RigidActor, pairs: &[PxContactPair]);
    fn reset_collide(&mut self);
    fn has_collide(&self) -> bool;
    fn read_collision_points(&self) -> &[PxContactPairPoint];
}