Skip to content

Instantly share code, notes, and snippets.

@jeffrey-cochran
Created August 23, 2021 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffrey-cochran/005deb150877318f8f11d033049740c9 to your computer and use it in GitHub Desktop.
Save jeffrey-cochran/005deb150877318f8f11d033049740c9 to your computer and use it in GitHub Desktop.
GSoC: Godot

The work I contributed to Godot this summer can be summarized in two pull requests:

The first PR enables collision detection for soft-body/area interactions and modifies the soft-body code to apply changes in gravity associated with the intersecting areas. The PR has a .zip attachment that contains a Godot scene demonstrating the changes in action. In it, a cloth intersects an area which modivies the gravity vector to point straight up, as can be seen.

The second PR creates a wind force simulation that affects soft-bodies colliding with the areas that specify the wind conditions. The wind force is characterized by four parameters that determine the wind direction, the origin of the wind, the rate at which the wind dies down as it gets further from its origin, and the magnitude of the wind force at its origin. The wind force degrades over distance and is proportional to the exposed area. The PR has a .zip attachment that contains a Godot scene demonstrating the changes in action. In it, a cloth is blown sideways by a wind force.

This video illustrates the changes from both PRs. It shows a cloth subject to area-specific gravity and an area-specific wind force.

The first PR has already been merged. The second PR is only awaiting approval for a minor change that corrects the conditions checked for errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment