Skip to content

Replace anchorPoint with Joints #613

@parasyte

Description

@parasyte

anchorPoint is too basic. It's difficult to use for attachments like Spine, or physics objects like rag dolls, cars, rope bridges, chains, ...

A joint provides three pieces of information:

  1. The anchor point on body A
  2. The anchor point on body B
  3. The type of joint (weld, axel, slide, etc)

The joint is its own class, and it references the bodies (and their anchor points) and type of joint. The joint class could also have its own physics properties, like strength (the amount of force required to turn an axel, or bend a weld...)

me.Body references a list of joints.

I can envision a rag doll created with me.Container, and all of its children (renderables for the body parts) are attached to one another using axel (rotary) joints. Seems like a pretty simple way to use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions