Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose chipmunk joints to python #23

Open
PawelRoman opened this issue Jul 10, 2019 · 0 comments
Open

Expose chipmunk joints to python #23

PawelRoman opened this issue Jul 10, 2019 · 0 comments

Comments

@PawelRoman
Copy link
Contributor

This is super big topic.

Currently kaa's tree-like node structure creates an illusion that any given node in the structure can interact physically. However it is not possible, a Hitbox must be directly under BodyNode and must be directly under Space node.

In other words, visual representation of the scene in kaa is a tree-like structure while physical representation of the scene must be a flat list of BodyNodes assigned to Space.

This leads to a problem when we want physical structure to be a chain of connected objects.

The solution to this problem is to create a flat list of BodyNodes connected with chipmunk joints. This is more understandable for programmers.

Kaa users will need to understand that kaa's node tree is applicable only for visual purpose, i.e. when nodes somewhere deep down in the tree won't need hitboxes. If a node deep down the tree structure needs a HitboxNode, it means you should not have used a tree at all! You should have built this object as a series of peer BodyNodes connected with joints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant