-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example1.x3d
39 lines (38 loc) · 1.18 KB
/
Example1.x3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "http://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D profile="Immersive" version="3.2">
<Scene>
<ProtoDeclare name='testbox'>
<ProtoInterface>
<field name='translation' type='SFVec3f' accessType='inputOutput'></field>
</ProtoInterface>
<ProtoBody>
<Group>
<Transform DEF="box1">
<IS>
<connect nodeField="translation" protoField="translation"></connect>
</IS>
<Shape>
<Box size="1 1 1"></Box>
<Appearance>
<Material diffuseColor="0 1 0"></Material>
</Appearance>
</Shape>
</Transform>
<Transform translation="2.5 0 0">
<Transform DEF="box2">
<Shape>
<Box size="1 1 1"></Box>
<Appearance>
<Material diffuseColor="0 0 1"></Material>
</Appearance>
</Shape>
</Transform>
</Transform>
</Group>
<Group>
</Group>
</ProtoBody>
</ProtoDeclare>
</Scene>
</X3D>