Skip to content

ProudPurple/SpringBody2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBody2D

A Godot 4 GDExtension plugin that adds a SpringBody2D node, which applies a customizable spring effect to incoming RigidBody2D nodes using physics calculations.

Image

Installation

  1. Copy the addons/springbody2d folder into your project's addons/ folder
  2. Go to Project → Project Settings → Plugins
  3. Enable the SpringBody2D plugin

Requires a CollisionPolygon2D as a direct child to function properly.

Properties

Property Description
Release Magnitude Multiplier applied to the release force
Max Force Upper limit on the release force
Min Buildup Minimum velocity buildup before release
Threshold Minimum dot product of velocity against the polygon wall required to trigger release
Growth Mult Multiplier on the rate of buildup growth
Normal Weight Weighting between the surface normal direction and the RigidBody2D's entry direction

Requirements

  • Godot 4.3+
  • Windows x86_64 (other platforms require building from source)

Modifications

  • To Modify you must download the gdextension c++ repository and place it in the root folder then run SConstruct

About

Part of an Overarching 2D Physics Node Set Created for Use in Godot

Resources

License

Stars

Watchers

Forks