dev #43
|
@ -53,6 +53,7 @@ const instanced_lamelle_material = props.models.lamelle.children[0].material
|
||||||
const instanced_lamelle_count = 24
|
const instanced_lamelle_count = 24
|
||||||
const instanced_v = [instanced_lamelle_geometry, instanced_lamelle_material, instanced_lamelle_count]
|
const instanced_v = [instanced_lamelle_geometry, instanced_lamelle_material, instanced_lamelle_count]
|
||||||
watch([instanced_lamelle, fence_section, extra_section, lamelles_count, extra], () => {
|
watch([instanced_lamelle, fence_section, extra_section, lamelles_count, extra], () => {
|
||||||
|
// console.log(props.index, instanced_v, instanced_lamelle.value)
|
||||||
for (let i = 0; i < instanced_lamelle_count; i++) {
|
for (let i = 0; i < instanced_lamelle_count; i++) {
|
||||||
if (instanced_lamelle.value) {
|
if (instanced_lamelle.value) {
|
||||||
const scale_x = (((extra.value as number) || fence_section.value) * 10)
|
const scale_x = (((extra.value as number) || fence_section.value) * 10)
|
||||||
|
|
|
@ -16,5 +16,5 @@ export const use_section_count = () => useState('section_count', () => n)
|
||||||
export const use_extra_section = () => useState('extra_section', () => 0)
|
export const use_extra_section = () => useState('extra_section', () => 0)
|
||||||
export const use_total_length = () => useState('total_length', () => (((min + 104) * n) + 104) * 0.001)
|
export const use_total_length = () => useState('total_length', () => (((min + 104) * n) + 104) * 0.001)
|
||||||
export const use_min_length = () => useState('min_length', () => 700)
|
export const use_min_length = () => useState('min_length', () => 700)
|
||||||
export const use_max_size = () => useState<number>('max_size', () => 40)
|
export const use_max_size = () => useState<number>('max_size', () => 20)
|
||||||
export const use_explosion_state = () => useState<boolean>('explosion_state', () => false)
|
export const use_explosion_state = () => useState<boolean>('explosion_state', () => false)
|
Loading…
Reference in New Issue