Type mismatch in ncollide example

help

#1

(Copy of my github issue)

I’m trying to learn how to use the crate by following the collision pipeline example.

However, the following line, as it appears in the example, seems to no longer compile:

// Integrate the positions.
ball_pos = ball_object.position.append_translation(&(timestep * ball_velocity.get()));

Fails with

note: expected type `&nalgebra::TranslationBase<f32, nalgebra::U2, nalgebra::MatrixArray<f32, nalgebra::U2, nalgebra::U1>>`
         found type `&nalgebra::Matrix<f32, nalgebra::U2, nalgebra::U1, nalgebra::MatrixArray<f32, nalgebra::U2, nalgebra::U1>>`

Does anyone know how to fix this?


#2

For other readers of this post, please refer to the github issue (I responded there before seing the post here.)