0% found this document useful (0 votes)
30 views

Compu Polla

This VRML document simulates the movement of a bouncing ball. It defines a ball object composed of a sphere shape that bounces along an interpolated path controlled by a time sensor. Tree objects are positioned in the scene for context. The ball is given motion by routing the time sensor's output to an interpolator that controls the ball's position, simulating its bouncing movement over 10 second cycles.

Uploaded by

otaner27
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Compu Polla

This VRML document simulates the movement of a bouncing ball. It defines a ball object composed of a sphere shape that bounces along an interpolated path controlled by a time sensor. Tree objects are positioned in the scene for context. The ball is given motion by routing the time sensor's output to an interpolator that controls the ball's position, simulating its bouncing movement over 10 second cycles.

Uploaded by

otaner27
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

#VRML V2.

0 utf8 Movimiento de la pelota


Árbol DEF pelota Group{
Transform { children[
translation 0 0 0 Transform{
children[ translation 0 0 8
Shape { children[
geometry Cylinder {height 2.5 Shape{
radius .5 geometry Sphere{
} radius .25
appearance Appearance {texture }
ImageTexture{ url "brom.jpg"}} appearance Appearance{texture
} ImageTexture{ url "agua.jpg"}}
] }
} ]
Cono del arbol }
Transform { ]
translation 0 2 0 }
children[ DEF ball Transform{
Shape { children[
geometry Cone {height 2 USE pelota
bottomRadius 2 ]
} }
appearance Appearance {material
Material{ diffuseColor 0 1 0}} DEF movimiento PositionInterpolator{
} key[0 0.2 0.45 .8]
] keyValue [0 0 0
} 3 0 0,
5 0 0,
Transform { 000
translation 0 3 0
children[
Shape { ]
geometry Cone {height 2 }
bottomRadius 2 DEF reloj TimeSensor{
} cycleInterval 10
appearance Appearance {material loop TRUE
Material{ diffuseColor 0 1 0}} }
} ROUTE reloj.fraction_changed TO
] movimiento.set_fraction
} ROUTE movimiento.value_changed TO
Transform { ball.set_translation
translation 7 0 0
children[
Shape {
geometry Cylinder {height 2.5
radius .5
}
appearance Appearance {texture
ImageTexture{ url "madera.jpg"}}
}
]
}

Transform {
translation 7 2 0
children[
Shape {
geometry Cone {height 2
bottomRadius 2
}
appearance Appearance {texture
ImageTexture{ url "hoja.jpg"}}
}
]
}

Transform {
translation 7 3 0
children[
Shape {
geometry Cone {height 2
bottomRadius 2
}
appearance Appearance {texture
ImageTexture{ url "hoja.jpg"}}
}
]
}

You might also like