dimforge / dimforge/rapier

[Question] Calculating one way platform's allowed normal from segment's normal

Open
#167 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
5.7k
Forks
387
Avg merge
4d 23h
Merged PRs (30d)
6

Description

Hello folks, I'm trying to create a one-way platform with the allowed normal (passed to `ContactModificationContext::update_as_oneway_platform`) dependent on the collided polyline segment's normal. However, I'm having trouble figuring out how to obtain the collided segment's normal to perform the calculation. Anybody can help me out here?

For context, I'm trying to enable/disable one way platforms based on the winding order they are defined (I'm using polylines). E.g. if a line is defined CCW, it can collide only from one side; if CW, the opposite side.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.