Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Aug 30, 2024
1 parent ddbb2a1 commit ca14954
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/documentation/ghost_collisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ There are 2 things implemented to fix ghost collisions.

2. The second one fixes the normals of polygons that have information about points nearby, follows an idea similar to this [box2D Ghost Collisions](https://box2d.org/posts/2020/06/ghost-collisions/) (right now it's implemented just for 3D though).

## 1. Ghost Collisions Fix
## Ghost Collisions Fix in modify_contacts

The fix is to disable the contacts in the [PhysicsHooks::modify_solver_contacts](https://rapier.rs/docs/user_guides/rust/advanced_collision_detection/#contact-modification) event if:
The first fix is to disable the contacts in the [PhysicsHooks::modify_solver_contacts](https://rapier.rs/docs/user_guides/rust/advanced_collision_detection/#contact-modification) event if:

1. The contact normal opposes the player’s velocity (which could cause the player to get caught).
2. The contact distance is smaller than the `physics/rapier/logic/ghost_collision_distance` project setting value. (Note, here we are also taking the velocity in consideration)
Expand Down
9 changes: 9 additions & 0 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const FeatureList = [
</>
),
},
{
title: 'Forever free and Open-Source',
Svg: require('@site/static/img/undraw_freelancer_re_irh4.svg').default,
description: (
<>
Built with a FOSS mindset, we aim to empower the Rust and Godot communities with an efficient physics simulation framework.
</>
),
},
];

function Feature({Svg, title, description}) {
Expand Down
1 change: 1 addition & 0 deletions static/img/undraw_freelancer_re_irh4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca14954

Please sign in to comment.