dimforge / dimforge/ncollide

Type mismatch in example

Open
#159 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
926
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Im trying to learn how to use the crate by following the [collision pipeline example](http://ncollide.org/collision_detection_pipeline/#example_1).

However, the following line, as it appears in the example, seems to no longer compile:
```rust
// Integrate the positions.
ball_pos = ball_object.position.append_translation(&(timestep * ball_velocity.get()));
```
Fails with
```rust
note: expected type `&nalgebra::TranslationBase>`
found type `&nalgebra::Matrix>`
```

Does anyone know how to fix this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.