fixed rapier.rs
This commit is contained in:
@@ -10,5 +10,4 @@ path = "physics.rs"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2.182"
|
||||
parry3d = "*"
|
||||
rapier3d = { version = "*", features = [ "simd-stable", "parallel" ] }
|
||||
|
||||
@@ -15,9 +15,10 @@ macro_rules! V_malloc {
|
||||
|
||||
use std::{default, ops::Index, ptr::{self, null, null_mut}, slice::from_raw_parts, sync::Arc};
|
||||
|
||||
use parry3d::{glamx::vec3, shape::{Shape, ShapeType, SharedShape}};
|
||||
use parry3d::{glamx::{Pose3A}, query::ShapeCastOptions};
|
||||
use rapier3d::{geometry::Ball, na::{UnitQuaternion, Vector4, coordinates::XYZ}};
|
||||
use rapier3d::glamx::*;
|
||||
use rapier3d::parry::query::ShapeCastOptions;
|
||||
use rapier3d::geometry::*;
|
||||
use rapier3d::na::*;
|
||||
use rapier3d::prelude::*;
|
||||
use libc::{malloc, free};
|
||||
use std::ffi::c_void;
|
||||
@@ -153,7 +154,7 @@ pub unsafe extern "C" fn CRapierPhysicsBody_SetRotation( this: *mut RapierPhysic
|
||||
{
|
||||
let world: &mut RapierWorld_t = &mut *(*this).m_pWorld;
|
||||
world.m_rigidBodies[(*this).m_hRigidBodyHandle]
|
||||
.set_rotation(parry3d::glamx::Quat::from_xyzw(fX, fY, fZ, fW), true);
|
||||
.set_rotation(glamx::Quat::from_xyzw(fX, fY, fZ, fW), true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user