pmndrs/use-cannon

presets

オープン

#79 opened on 2020/05/25

 (5 件のコメント) (6 件のリアクション) (0 人の担当者)TypeScript (164 件のフォーク)github user discovery
enhancementhelp wantedquestion

Repository metrics

Stars
 (2,950 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

      <Physics
        defaultContactMaterial={{
          friction: 0.9,
          restitution: 0.7,
          contactEquationStiffness: 1e7,
          contactEquationRelaxation: 1,
          frictionEquationStiffness: 1e7,
          frictionEquationRelaxation: 2,
        }}

would it be a good idea to introduce presets for stuff like this? bouncy, crude, slippery, whatever name would make sense. for react-spring we had 4 or 5, so that users dont need to remember what damping and tension are, but here it seems even more critical, because it's probably harder to understand what these values actually mean.

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