Skip to content

Physics bodies in godot with ability to flip or mirror themselves.

License

Notifications You must be signed in to change notification settings

DanielKinsman/godot-flippable-physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlippablePhysics2D

For working around the fact that you can't easily "flip" or "mirror" physics bodies like RigidBody2D. It works via rotating and translating children of such nodes instead of mirroring them via scale(-1, 1).

As such it has several limitations, primarily that it only works for symmetrical children like a CollisionShape2D with a RectangleShape2D property, not one with an asymetrical hand drawn ConvexPolygonShape2D.

To use it, copy the files into your project (or better yet, git submodule add it), then change the extends RigidBody2D in your node's script to extends "subdir/FlippablePhysics2D.gd".FlippableRigidBody2D. See the example project in the godot-tricks repo.

About

Physics bodies in godot with ability to flip or mirror themselves.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published