Heilan X3D Browser

CollisionCubes

Type

ParentNode (but that's left over from a previous version - in reality you can just treat it as a ChildNode).

Description

Two nodes which periodically collide with each other, producing sound. This was made as an example to accompany a presentation I gave, and probably doesn't have any practical use.

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.

maxFront 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 ">
			<CollisionCubes 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"/>
			</CollisionCubes>
		</Transform>
	</Scene>
</X3D>