摘要:
在 Character 基类的接口文件中查看时,会发现内置的角色跳跃支持。角色跳跃与 bPressedJump 变量绑定。因此需要执行的操作是在按下跳跃动作时将该布尔型设为 true,松开跳跃动作时设为 false。 需要添加以下两个函数完成此操作: StartJump StopJump 在.h文件 阅读全文
摘要:
// 调用后将功能绑定到输入 void AFPSCharacter::SetupPlayerInputComponent(class UInputComponent* InputComponent) { Super::SetupPlayerInputComponent(InputComponent) 阅读全文