Updated BallpitDemo and OrbDemo to use the latest changes.

This commit is contained in:
snepsnepy
2025-07-16 16:28:29 +03:00
parent 48d08b9e24
commit 2e55686e70
2 changed files with 9 additions and 78 deletions

View File

@@ -17,59 +17,15 @@
</div>
<Customize>
<PreviewSwitch title="Display Cursor" v-model="followCursor" @update:model-value="forceRerender" />
<PreviewSwitch title="Display Cursor" v-model="followCursor" />
<PreviewSlider
title="Ball Count"
:min="50"
:max="500"
:step="10"
v-model="count"
@onChange="
(val: number) => {
count = val;
}
"
/>
<PreviewSlider title="Ball Count" :min="50" :max="500" :step="10" v-model="count" />
<PreviewSlider
title="Gravity"
:min="0.1"
:max="1"
:step="0.1"
v-model="gravity"
@onChange="
(val: number) => {
gravity = val;
}
"
/>
<PreviewSlider title="Gravity" :min="0.1" :max="1" :step="0.1" v-model="gravity" />
<PreviewSlider
title="Friction"
:min="0.9"
:max="1"
:step="0.001"
v-model="friction"
@onChange="
(val: number) => {
friction = val;
}
"
/>
<PreviewSlider title="Friction" :min="0.9" :max="1" :step="0.001" v-model="friction" />
<PreviewSlider
title="Wall Bounce"
:min="0.1"
:max="1"
:step="0.05"
v-model="wallBounce"
@onChange="
(val: number) => {
wallBounce = val;
}
"
/>
<PreviewSlider title="Wall Bounce" :min="0.1" :max="1" :step="0.05" v-model="wallBounce" />
</Customize>
<PropTable :data="propData" />