|
pub fn cast_shapes( |
|
pos1: &Pose, |
|
vel1: Vector, |
|
g1: &dyn Shape, |
|
pos2: &Pose, |
|
vel2: Vector, |
|
g2: &dyn Shape, |
|
options: ShapeCastOptions, |
|
) -> Result<Option<ShapeCastHit>, Unsupported> { |
|
let pos12 = pos1.inv_mul(pos2); |
|
let vel12 = pos1.rotation.inverse() * vel2 - vel1; |
|
DefaultQueryDispatcher.cast_shapes(&pos12, vel12, g1, g2, options) |
|
} |
I think the difference of velocities should be with parenthesis like below
let vel12 = pos1.rotation.inverse() * (vel2 - vel1);
parry/src/query/shape_cast/shape_cast.rs
Lines 272 to 284 in b9d137f
I think the difference of velocities should be with parenthesis like below