DaymareOn/hdtSMP64

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

Open

#119 opened on 2023年12月29日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C++ (34 forks)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (67 stars)
PR merge metrics
 (平均マージ 15h 45m) (30d で 28 merged PRs)

説明

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.

コントリビューターガイド