Skip to content

Vector2 never returns zero #847

@graferowy

Description

@graferowy

Hi.
I am trying to make a basic player movement with new input system and I cannot figure it out.
I have a Action of Action Type "Value" and Value Type "Vector2". I've added to it 2D Vector Composite of type normalized Vector2. The problem is it returns only a value when any of the keys was pressed. There's no Vector2.zero value when keys are released to cancel the movement. When I try to change it somehow to "Press and release" it returns vector zero, but it does not read 2 keys pressed at the same time, so I cannot move diagonally. What's the solution?

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