Heilan X3D Browser

JumpCube

Type

ParentNode, to be used with a child AudioClip node.

Description

A cube which jumps to a new (random) position when a transient in the audio is detected.

Attributes

maxBack SFFloat (input) The same as Sound's maxBack attribute.

maxFront SFFloat (input) The same as Sound's maxFront attribute.

minBack SFFloat (input) The same as Sound's minBack attribute.

minxFront SFFloat (input) The same as Sound's minFront attribute.

Example Use

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE X3D>
<X3D profile="Full">
	<Scene>
		<NavigationInfo type="ANY"/>

		<Transform translation="0.0 0.0 -8.0 ">
			<JumpCube minFront="10.0" maxFront="100.0" minBack="10.0" maxBack="100.0">
				<Appearance>
					<Material diffuseColor="1.0 0.0 0.0"/>
				</Appearance>
				<AudioClip url="/home/niall/music/samples/thing.wav"/>
			</JumpCube>
		</Transform>
	</Scene>
</X3D>