Skip to content

Commit

Permalink
fix: remove physics control
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Oct 6, 2024
1 parent 76e3646 commit d4edacd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ export const Model = () => {
audioDelayTime,
audioPath,
modelPath,
modelPhysics,
modelScale,
} = useControls('Assets', {
animationPath: `${examples}models/mmd/vmds/wavefile_v2.vmd`,
audioDelayTime: 160 * 1 / 30,
audioPath: `${examples}models/mmd/audios/wavefile_short.mp3`,
modelPath: `${pmx}miku/Tda式初音ミク・アペンド_Ver1.10.pmx`,
modelPhysics: true,
modelScale: {
max: 0.2,
min: 0.01,
Expand Down Expand Up @@ -57,7 +55,7 @@ export const Model = () => {

loader.loadAnimation(animationPath, model, (animation) => {
model.animations.push(animation as AnimationClip)
helper.add(model, { animation: model.animations, physics: modelPhysics })
helper.add(model, { animation: model.animations, physics: true })
})

audio.setBuffer(buffer)
Expand Down

0 comments on commit d4edacd

Please sign in to comment.