uBot Multirotor Manual Input
本地玩家控制(附身)所属多旋翼时,用键盘或手柄驾驶它。输入动作和映射上下文在运行时创建(Enhanced Input),不需要资产;要改按键就设置自己的。控制期间每帧发送一条指令。控制结束时,速度模式下刹车悬停;姿态和角速度模式下按 Command Loss Action 处理,默认悬停。
Get Manual Flight Axes
Section titled “Get Manual Flight Axes”Get Manual Flight AxesTarget is uBot Multirotor Manual InputTargetReturn Value
最近一帧经过死区处理后的各个轴。
| 引脚 | 方向 | 类型 |
|---|---|---|
| Return Value | 输出 | UBot Manual Flight Axes结构体 |
Is Controlling
Section titled “Is Controlling”Is ControllingTarget is uBot Multirotor Manual InputTargetReturn Value
这个组件正在驾驶无人机时为 true。
| 引脚 | 方向 | 类型 |
|---|---|---|
| Return Value | 输出 | Boolean |
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
Dead ZoneDeadZone · Manual Input | Float | 0.15 | 摇杆死区,占满偏转的比例。范围 0.0 – 0.9;蓝图读写,Details 可编辑 |
Flight ModeFlightMode · Manual Input | EUBot Manual Flight Mode枚举 | Velocity | 摇杆控制的内容。蓝图读写,Details 可编辑 |
Max Body Rate Degrees Per SecondMaxBodyRateDegreesPerSecond · Manual Input | Float | 220.0 | 满偏转时的横滚和俯仰角速度(Rate 模式),单位 deg/s。最小 0.0;蓝图读写,Details 可编辑 |
Max Horizontal Speed Meters Per SecondMaxHorizontalSpeedMetersPerSecond · Manual Input | Float | 5.0 | 满偏转时的水平速度(Velocity 模式),单位 m/s。最小 0.0;单位 MetersPerSecond;蓝图读写,Details 可编辑 |
Max Tilt DegreesMaxTiltDegrees · Manual Input | Float | 30.0 | 满偏转时的倾角(Angle 模式),单位度。范围 0.0 – 60.0;单位 Degrees;蓝图读写,Details 可编辑 |
Max Vertical Speed Meters Per SecondMaxVerticalSpeedMetersPerSecond · Manual Input | Float | 2.0 | 满偏转时的爬升或下降速度,单位 m/s。最小 0.0;单位 MetersPerSecond;蓝图读写,Details 可编辑 |
Max Yaw Rate Degrees Per SecondMaxYawRateDegreesPerSecond · Manual Input | Float | 90.0 | 满偏转时的偏航角速度,单位 deg/s。最小 0.0;蓝图读写,Details 可编辑 |
Take Control when PossessedbTakeControlWhenPossessed · Manual Input | Boolean | true | 本地玩家附身无人机的 Pawn 时自动接管无人机。蓝图读写,Details 可编辑 |
Custom Mapping ContextCustomMappingContext · Manual Input|Custom | Input Mapping Context对象引用 | None | 自己的映射上下文,必须映射 Custom Move Action 和 Custom Yaw Action。为空时使用内置按键。蓝图读写,Details 可编辑 |
Custom Move ActionCustomMoveAction · Manual Input|Custom | Input Action对象引用 | None | 自己的移动动作(Axis3D:前、右、上),和 Custom Mapping Context 一起使用。蓝图读写,Details 可编辑 |
Custom Yaw ActionCustomYawAction · Manual Input|Custom | Input Action对象引用 | None | 自己的偏航动作(Axis1D,正值向右转),和 Custom Mapping Context 一起使用。蓝图读写,Details 可编辑 |
Mapping PriorityMappingPriority · Manual Input|Custom | Integer | 1 | 映射上下文的优先级。蓝图读写,Details 可编辑 |