diff options
| author | Crozet Sébastien <developer@crozet.re> | 2021-03-07 11:43:47 +0100 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2021-03-07 11:44:19 +0100 |
| commit | bed47a82e706a13c22799fcf644753c69fdec6ad (patch) | |
| tree | 51db7ca364983b29ce31ddb6256e6badaad60c06 /examples3d/one_way_platforms3.rs | |
| parent | e7f805aea45612abb655b3c36a133357fecfcdc4 (diff) | |
| download | rapier-bed47a82e706a13c22799fcf644753c69fdec6ad.tar.gz rapier-bed47a82e706a13c22799fcf644753c69fdec6ad.tar.bz2 rapier-bed47a82e706a13c22799fcf644753c69fdec6ad.zip | |
Projection friction impulses on an implicit cone instead of a pyramidal approximation.
Diffstat (limited to 'examples3d/one_way_platforms3.rs')
| -rw-r--r-- | examples3d/one_way_platforms3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/one_way_platforms3.rs b/examples3d/one_way_platforms3.rs index 173d03d..d117a5b 100644 --- a/examples3d/one_way_platforms3.rs +++ b/examples3d/one_way_platforms3.rs @@ -40,7 +40,7 @@ impl PhysicsHooks for OneWayPlatformHook { allowed_local_n1 = -Vector3::y(); } else if context.collider_handle2 == self.platform2 { // Flip the allowed direction. - allowed_local_n1 = -Vector3::y(); + allowed_local_n1 = Vector3::y(); } // Call the helper function that simulates one-way platforms. |
