Skip to content

Main Crate 0.20.0 - 2024-10-12

Latest
Compare
Choose a tag to compare
@idanarye idanarye released this 17 Oct 20:20

Added

  • A TnuaBuiltinKnockback action for applying knockback that will not be
    nullified even with very high walk acceleration settings (see
    #30)

Changed

  • Instead of fixating it to positive Y, Tnua now calculates the up direction to
    be the reverse of the gravity direction (see see
    #40)
  • [BREAKING] API changes:
    • (only relevant for custom basis/actions) The up_direction of
      TnuaBasisContext and TnuaActionContext is now a field instead of a
      method.
    • TnuaController method for feeding basis and actions no longer return
      &mut Self (this was always redundant, since they get called from queries
      anyway rather than on freshly created objects, so they don't benefit from a
      fluent API)
    • desired_forward fields of TnuaBuiltinWalk and TnuaBuiltinDash were
      changed from Vector3 to Option<Dir3>.
    • The direction fields of some of TnuaBuiltinDashState's variants were
      changed from Vector3 to Dir3.