Skip to content

simulated-tea/Construct2-RubberBand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubber Band

A rubber band behavior for Construct 2 This behavior can attach one object to another and exercise a force if these two objects get too far apart. It can have additional gravity and drag configured to allow for some quite different use cases.

State

The current implementation is functional. Performance was found to be satisfactory upto this point. (No tuning seems to be needed.)

Known issues

  • collision checks not yet implemented collisions, beeing pretty involved, will at most be a separate behavior
  • if complex chains are shaken intensely they might spin around like crazy and not come back to rest or fly off to inifinity. Try increasing the drag to avoid this (e.g drag >= stiffness).
  • crazy config values might create crazy behavior - won't fix. I like some of those. :)

Disclaimer

This is still work in progress. Comments, feature requests and suggestions, especially regarding integration into Construct 2 or per-frame computation and game mechanics in general, are welcome.

Development

The .c2addon can be build with grunt. Given a working node.js installation

npm install
grunt build

should do the trick.

About

Rubber Band behavior for Construct 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages