introduces ios support? still needs metal
This commit is contained in:
@@ -161,6 +161,7 @@ pub unsafe extern "C" fn px_kinematic_position_body(px_world: *mut funnyphysics,
|
||||
.dominance_group(params.dominance)
|
||||
.linear_damping(0.0)
|
||||
.angular_damping(0.0)
|
||||
.ccd_enabled(params.continous == 1)
|
||||
.build();
|
||||
let body = px.rigid_body_set.insert(rigid_body);
|
||||
px.collider_set.insert_with_parent(c.clone(),body,&mut px.rigid_body_set);
|
||||
@@ -284,7 +285,12 @@ pub unsafe extern "C" fn px_box_cast(px_world: *mut funnyphysics, x:f32,y:f32,z:
|
||||
&px.rigid_body_set, &px.collider_set, &shape_pos, &shape_vel, &c, options, filter
|
||||
) {
|
||||
res.time=hit.time_of_impact;
|
||||
res.normal1.m[0] = hit.normal1.x;
|
||||
res.normal1.m[1] = hit.normal1.y;
|
||||
res.normal1.m[2] = hit.normal1.z;
|
||||
res.hit = 1;
|
||||
} else {
|
||||
res.time = time;
|
||||
}
|
||||
res
|
||||
res
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user