Skip to content
MovementDirection

[Character System](../groups/Character System.Character System.md) / MovementDirection

MovementDirection Enumeration

Positive direction of motion

Different mode will determine the actual axial modification mode when moving

In AxisDirection mode, you can modify the character's movementAxisDirection to determine the axis of movement

In ViewDirection mode, the movement axis will automatically change with the rotation of the viewport

In ControllerDirection mode, the moving axis will automatically change with the rotation of the controller

Example:

  1. Call the addMoveInput interface and pass in the parameter Vector.forward

When the actual axis of motion is world front (Vector. forward), the actual direction of motion is world front (Vector. forward)

When the actual axis of motion is the world right direction (Vector. right), the actual direction of motion is the world positive direction (Vector. right)

  1. Call the addMoveInput interface and pass in Vector.right as the parameter

When the actual axis of motion is the world front direction (Vector. forward), the actual direction of motion is the world right direction (Vector. right)

When the actual axis of motion is the world right direction (Vector. right), the actual direction of motion is the world back direction (Vector. back)

Table of contents

Enumeration Members

AxisDirection = 0
ControllerDirection = 2
ViewDirection = 1

Enumeration Members

AxisDirection

AxisDirection = 0

Given axis direction


ControllerDirection

ControllerDirection = 2

Controller direction


ViewDirection

ViewDirection = 1

Viewport Orientation