Skip to content

Can't add to vector length when length is 0 #94

@hawkerm

Description

@hawkerm

Would be nice for it to remember the last 'direction' it was in to be able to up it's speed once an object has stopped.

Currently throws:
File "pymunk\vec2d.pyo", line 310, in __setlength
ZeroDivisionError: float division by zero

Though with the convention set in get_angle that the angle is zero if the length is zero, I would at least expect it to increase the vector in that direction.

Thanks

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