DaymareOn/hdtSMP64

[Feature Request] Apply turn physics to the last part of an unclamped turn

Open

#119 创建于 2023年12月29日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)C++ (34 fork)github user discovery
enhancementgood first issue

仓库指标

Star
 (67 star)
PR 合并指标
 (平均合并 15小时 45分钟) (30 天内合并 28 个 PR)

描述

In the current implementation, if "unclampedResetAngle" is less than the turn angle, then the entire turn will have no physics (reset).

Instead, we could apply turn physics to only the last part of the turn.

Consider a new config property "clampAngle". It will be set to a small angle value, say, 40°.

Now, if the character makes a turn of 150°, then the first 110° will have no physics (reset). But, physics will start applying to the remaining 40° ("clampAngle") of the turn.

This will provide more realism as you will still see proper physics at the end of the turn.

贡献者指南