Make the query pipeline serializable.

This commit is contained in:
Crozet Sébastien
2020-10-05 16:51:50 +02:00
parent bbfe926a11
commit 2d0a888484
3 changed files with 6 additions and 5 deletions

View File

@@ -261,10 +261,10 @@ impl PhysxWorld {
fn setup_joints(&mut self, joints: &JointSet) {
unsafe {
for joint in joints.iter() {
let actor1 = self.rapier2physx[&joint.body1];
let actor2 = self.rapier2physx[&joint.body2];
let actor1 = self.rapier2physx[&joint.1.body1];
let actor2 = self.rapier2physx[&joint.1.body2];
match &joint.params {
match &joint.1.params {
JointParams::BallJoint(params) => {
let frame1 = physx::transform::gl_to_px_tf(
Isometry3::new(params.local_anchor1.coords, na::zero()).into_glam(),