Skip to content

apecs-physics: Constraints implementation #48

@tomsmalley

Description

@tomsmalley

Some things about constraints are iffy:

  • MaxForce/MaxBias only apply to certain types of constraints, not all constraints
  • Getting the properties of constraints leads to immediately outdated data when the constraints take WVec. For example, I create a pivot joint with PivotJoint at some position, but I want to draw the pivot point on a body which moves around. The WVec isn't updated, so it isn't possible to do so. Chipmunk converts it to the PivotJoint2 representation and provides functions to grab it. These could be implemented like MaxForce, but really are only accessible in pivot joints.

Perhaps the ConstraintType should be lifted into the type of Constraint somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions