Ciao!
non riesco a far funzionare questo codice (si tratta di un suono che dovrebbe sentirsi quando si clicca sull'oggetto)
Qualcuno può aiutarmi?codice:#VRML V2.0 utf8 NavigationInfo{ speed 3.0 type["EXAMINE"]} Viewpoint{ position 3 6 15 orientation 1 0 0 -0.5 description "prova"} DEF Tutto Transform { #tutto perché contiene tutti i blocchi translation 0 0 0 children[ Group { children[ Shape{ appearance Appearance{ material Material {diffuseColor 1.0 0.4 0.0} } geometry Box {size 3 3 1} } Transform { translation 0 0 1 children[ Shape{ appearance Appearance{ material Material {diffuseColor 1.0 0.7 0.0} } geometry Box {size 2 2 1} } ]#chiude children3 } DEF UnSensore PlaneSensor { minPosition -2 0 maxPosition 2 0 } DEF sensorePerSuono TouchSensor {} ]#chiude children2 }#chiude gruppo ]#chiude children1 }#chiude tutto Transform { translation 0 2 0 children[ DEF Suono Sound{ maxFront 500 minFront 500 maxBack 500 minBack 500 spatialize TRUE intensity 1 source AudioClip{ url ["wind.wav"] isActive FALSE loop FALSE } } ] } ROUTE UnSensore.translation_changed TO Tutto.set_translation ROUTE sensorePerSuono.isActive TO Suono.source.isActive ROUTE sensorePerSuono.isActive TO Suono.source.loop
![]()

Rispondi quotando
