dimforge / dimforge/nphysics

Iterating over parts of a body

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.6k
Forks
120
PR merge metrics
No merged PRs in 30d

Description

Processing bodies generically (for example, in a force generator) may requires access to body part specific information, such as center of mass. Presently there doesn't appear to be any way to traverse the parts of a body of statically unknown body type. To correct this, `Body` could be extended with something like `fn parts_len(&self) -> usize` to guide use of `Body::part`.

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.