Ninja Character - Dynamic gravity for characters & objects

New version is up, compatible with UE 4.26.

1.29.26:

  • Added Epic’s missing code changes that were written between UE 4.22 and 4.23 releases.
  • Amended incorrect notes of SmoothComponent Blueprint functions.
  • Return UpVector constant in GetComponentDesiredAxisZ instead of in GetComponentAxisZ.
  • Added SetCharMovementAxis Blueprint callable function to NinjaCharacter.
    — “Change Char Axis” node allows rotating the collision capsule and force-walk unwalkable surfaces.
    — “On Unwalkable Hit” event is triggered when the collision capsule bumps into an unwalkable blocking object.
    — “Trigger Unwalkable Hits” checkbox controls unwalkable hit events.
  • Used a quaternion to rotate the ControlRotation in OnCharMovementAxisChanged.
  • Added GetAxisZ function of an FRotator in NinjaMath.
  • Replaced uses of 0,0,-1 vector with DownVector constant.
  • Used HALF_PI constant instead of PI/2.
  • Deleted unneeded trigger of 1.3 example because OnMovementModeChanged’s code was changed to rotate around center of collision capsule.

2 Likes