unreal.PhysicsInputCmd

class unreal.PhysicsInputCmd(force=[0.0, 0.0, 0.0], torque=[0.0, 0.0, 0.0], acceleration=[0.0, 0.0, 0.0], angular_acceleration=[0.0, 0.0, 0.0], target_yaw=0.0, jumped_pressed=False, brakes_pressed=False)

Bases: unreal.StructBase

Physics Input Cmd

C++ Source:

  • Plugin: NetworkPredictionExtras

  • Module: NetworkPredictionExtras

  • File: PhysicsMovement.h

Editor Properties: (see get_editor_property/set_editor_property)

  • acceleration (Vector): [Read-Write] Acceleration

  • angular_acceleration (Vector): [Read-Write] Angular Acceleration

  • brakes_pressed (bool): [Read-Write] Brakes Pressed

  • force (Vector): [Read-Write] Force: Simple world vector force to be applied

  • jumped_pressed (bool): [Read-Write] Jumped Pressed

  • target_yaw (float): [Read-Write] Target Yaw: Target yaw of character (Degrees). Torque will be applied to rotate character towards target.

  • torque (Vector): [Read-Write] Torque

property acceleration

[Read-Write] Acceleration

Type

(Vector)

property angular_acceleration

[Read-Write] Angular Acceleration

Type

(Vector)

property brakes_pressed

[Read-Write] Brakes Pressed

Type

(bool)

property force

[Read-Write] Force: Simple world vector force to be applied

Type

(Vector)

property jumped_pressed

[Read-Write] Jumped Pressed

Type

(bool)

property target_yaw

[Read-Write] Target Yaw: Target yaw of character (Degrees). Torque will be applied to rotate character towards target.

Type

(float)

property torque

[Read-Write] Torque

Type

(Vector)