hytopia 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +494 -0
- package/docs/server.matrix2._constructor_.md +89 -0
- package/docs/server.matrix2.add.md +55 -0
- package/docs/server.matrix2.adjoint.md +19 -0
- package/docs/server.matrix2.clone.md +19 -0
- package/docs/server.matrix2.copy.md +55 -0
- package/docs/server.matrix2.create.md +19 -0
- package/docs/server.matrix2.determinant.md +13 -0
- package/docs/server.matrix2.equals.md +55 -0
- package/docs/server.matrix2.exactequals.md +55 -0
- package/docs/server.matrix2.frobeniusnorm.md +13 -0
- package/docs/server.matrix2.fromrotation.md +55 -0
- package/docs/server.matrix2.fromscaling.md +55 -0
- package/docs/server.matrix2.identity.md +19 -0
- package/docs/server.matrix2.invert.md +19 -0
- package/docs/server.matrix2.md +383 -0
- package/docs/server.matrix2.multiply.md +55 -0
- package/docs/server.matrix2.multiplyscalar.md +55 -0
- package/docs/server.matrix2.rotate.md +55 -0
- package/docs/server.matrix2.subtract.md +55 -0
- package/docs/server.matrix2.tostring.md +19 -0
- package/docs/server.matrix2.transpose.md +19 -0
- package/docs/server.matrix3._constructor_.md +159 -0
- package/docs/server.matrix3.add.md +55 -0
- package/docs/server.matrix3.adjoint.md +19 -0
- package/docs/server.matrix3.clone.md +19 -0
- package/docs/server.matrix3.copy.md +55 -0
- package/docs/server.matrix3.create.md +19 -0
- package/docs/server.matrix3.determinant.md +13 -0
- package/docs/server.matrix3.equals.md +55 -0
- package/docs/server.matrix3.exactequals.md +55 -0
- package/docs/server.matrix3.frobeniusnorm.md +13 -0
- package/docs/server.matrix3.frommatrix4.md +55 -0
- package/docs/server.matrix3.fromquaternion.md +55 -0
- package/docs/server.matrix3.fromrotation.md +55 -0
- package/docs/server.matrix3.fromscaling.md +55 -0
- package/docs/server.matrix3.fromtranslation.md +55 -0
- package/docs/server.matrix3.identity.md +19 -0
- package/docs/server.matrix3.invert.md +19 -0
- package/docs/server.matrix3.md +459 -0
- package/docs/server.matrix3.multiply.md +55 -0
- package/docs/server.matrix3.multiplyscalar.md +55 -0
- package/docs/server.matrix3.projection.md +71 -0
- package/docs/server.matrix3.rotate.md +55 -0
- package/docs/server.matrix3.subtract.md +55 -0
- package/docs/server.matrix3.tostring.md +19 -0
- package/docs/server.matrix3.transformvector.md +55 -0
- package/docs/server.matrix3.transpose.md +19 -0
- package/docs/server.matrix4._constructor_.md +257 -0
- package/docs/server.matrix4.add.md +55 -0
- package/docs/server.matrix4.adjoint.md +19 -0
- package/docs/server.matrix4.clone.md +19 -0
- package/docs/server.matrix4.copy.md +55 -0
- package/docs/server.matrix4.create.md +19 -0
- package/docs/server.matrix4.determinant.md +13 -0
- package/docs/server.matrix4.equals.md +55 -0
- package/docs/server.matrix4.exactequals.md +55 -0
- package/docs/server.matrix4.frobeniusnorm.md +13 -0
- package/docs/server.matrix4.fromquaternion.md +55 -0
- package/docs/server.matrix4.fromrotation.md +71 -0
- package/docs/server.matrix4.fromrotationtranslation.md +71 -0
- package/docs/server.matrix4.fromrotationtranslationscale.md +87 -0
- package/docs/server.matrix4.fromrotationtranslationscaleorigin.md +103 -0
- package/docs/server.matrix4.fromscaling.md +55 -0
- package/docs/server.matrix4.fromtranslation.md +55 -0
- package/docs/server.matrix4.fromxrotation.md +55 -0
- package/docs/server.matrix4.fromyrotation.md +55 -0
- package/docs/server.matrix4.fromzrotation.md +55 -0
- package/docs/server.matrix4.frustrum.md +135 -0
- package/docs/server.matrix4.identity.md +19 -0
- package/docs/server.matrix4.invert.md +19 -0
- package/docs/server.matrix4.lookat.md +87 -0
- package/docs/server.matrix4.md +651 -0
- package/docs/server.matrix4.multiply.md +55 -0
- package/docs/server.matrix4.multiplyscalar.md +55 -0
- package/docs/server.matrix4.orthographic.md +135 -0
- package/docs/server.matrix4.perspective.md +103 -0
- package/docs/server.matrix4.rotate.md +71 -0
- package/docs/server.matrix4.rotatex.md +55 -0
- package/docs/server.matrix4.rotatey.md +55 -0
- package/docs/server.matrix4.rotatez.md +55 -0
- package/docs/server.matrix4.scale.md +55 -0
- package/docs/server.matrix4.subtract.md +55 -0
- package/docs/server.matrix4.targetto.md +87 -0
- package/docs/server.matrix4.tostring.md +19 -0
- package/docs/server.matrix4.translate.md +55 -0
- package/docs/server.matrix4.transpose.md +19 -0
- package/docs/server.md +66 -0
- package/docs/server.quaternion.md +14 -0
- package/docs/server.quaternion.transformvector.md +55 -0
- package/docs/server.vector2._constructor_.md +61 -0
- package/docs/server.vector2.add.md +55 -0
- package/docs/server.vector2.angle.md +55 -0
- package/docs/server.vector2.ceil.md +19 -0
- package/docs/server.vector2.clone.md +19 -0
- package/docs/server.vector2.copy.md +55 -0
- package/docs/server.vector2.create.md +19 -0
- package/docs/server.vector2.distance.md +55 -0
- package/docs/server.vector2.divide.md +55 -0
- package/docs/server.vector2.dot.md +55 -0
- package/docs/server.vector2.equals.md +55 -0
- package/docs/server.vector2.exactequals.md +55 -0
- package/docs/server.vector2.floor.md +19 -0
- package/docs/server.vector2.invert.md +19 -0
- package/docs/server.vector2.length.md +13 -0
- package/docs/server.vector2.lerp.md +71 -0
- package/docs/server.vector2.magnitude.md +13 -0
- package/docs/server.vector2.max.md +55 -0
- package/docs/server.vector2.md +643 -0
- package/docs/server.vector2.min.md +55 -0
- package/docs/server.vector2.multiply.md +55 -0
- package/docs/server.vector2.negate.md +19 -0
- package/docs/server.vector2.normalize.md +19 -0
- package/docs/server.vector2.randomize.md +55 -0
- package/docs/server.vector2.rotate.md +71 -0
- package/docs/server.vector2.round.md +19 -0
- package/docs/server.vector2.scale.md +55 -0
- package/docs/server.vector2.scaleandadd.md +71 -0
- package/docs/server.vector2.squaredlength.md +13 -0
- package/docs/server.vector2.squaredmagnitude.md +13 -0
- package/docs/server.vector2.subtract.md +55 -0
- package/docs/server.vector2.tostring.md +19 -0
- package/docs/server.vector2.transformmatrix2.md +55 -0
- package/docs/server.vector2.transformmatrix3.md +55 -0
- package/docs/server.vector2.transformmatrix4.md +55 -0
- package/docs/server.vector2.x.md +15 -0
- package/docs/server.vector2.y.md +15 -0
- package/docs/server.vector2.zero.md +19 -0
- package/docs/server.vector2boolean.md +72 -0
- package/docs/server.vector2boolean.x.md +11 -0
- package/docs/server.vector2boolean.y.md +11 -0
- package/docs/server.vector2like.md +72 -0
- package/docs/server.vector2like.x.md +11 -0
- package/docs/server.vector2like.y.md +11 -0
- package/docs/server.vector3.dot.md +55 -0
- package/docs/server.vector3.md +14 -0
- package/docs/server.vector3.transformmatrix3.md +1 -1
- package/docs/server.vector3.transformmatrix4.md +1 -1
- package/examples/child-entity/assets/models/.optimized/baseColor.png +0 -0
- package/examples/child-entity/assets/models/.optimized/sword/baseColor.png +0 -0
- package/examples/child-entity/assets/models/.optimized/sword/sword.bin +0 -0
- package/examples/child-entity/assets/models/.optimized/sword/sword.gltf +356 -0
- package/examples/child-entity/assets/models/.optimized/sword.bin +0 -0
- package/examples/child-entity/assets/models/.optimized/sword.gltf +136 -0
- package/examples/child-entity/bun.lock +17 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/barbedfence/barbedfence.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/barbedfence/barbedfence.gltf +806 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/barbedfence/barbedfence.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/barbedfence/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/binoculars/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/binoculars/binoculars.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/binoculars/binoculars.gltf +1633 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/binoculars/binoculars.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bombbox/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bombbox/bombbox.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bombbox/bombbox.gltf +2480 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bombbox/bombbox.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bullet-hole/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bullet-hole/bullet-hole.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bullet-hole/bullet-hole.gltf +136 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/bullet-hole/bullet-hole.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/healthkit/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/healthkit/healthkit.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/healthkit/healthkit.gltf +831 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/healthkit/healthkit.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/metalshelf/baseColor_1.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/metalshelf/baseColor_2.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/metalshelf/metalshelf.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/metalshelf/metalshelf.gltf +4025 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/metalshelf/metalshelf.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/muzzle-flash/baseColor_1.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/muzzle-flash/baseColor_2.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/muzzle-flash/muzzle-flash.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/muzzle-flash/muzzle-flash.gltf +196 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/muzzle-flash/muzzle-flash.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/weaponbox/baseColor_1.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/weaponbox/baseColor_2.png +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/weaponbox/weaponbox.bin +0 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/weaponbox/weaponbox.gltf +3412 -0
- package/examples/zombies-fps/assets/models/environment/.optimized/weaponbox/weaponbox.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/items/.optimized/ak-47/ak-47.glb +0 -0
- package/examples/zombies-fps/assets/models/items/.optimized/ak-47/ak-47.glb.md5 +1 -0
- package/examples/zombies-fps/assets/models/items/.optimized/ar-15/ar-15.glb +0 -0
- package/examples/zombies-fps/assets/models/items/.optimized/ar-15/ar-15.glb.md5 +1 -0
- package/examples/zombies-fps/assets/models/items/.optimized/auto-pistol/auto-pistol.glb +0 -0
- package/examples/zombies-fps/assets/models/items/.optimized/auto-pistol/auto-pistol.glb.md5 +1 -0
- package/examples/zombies-fps/assets/models/items/.optimized/auto-shotgun/auto-shotgun.glb +0 -0
- package/examples/zombies-fps/assets/models/items/.optimized/auto-shotgun/auto-shotgun.glb.md5 +1 -0
- package/examples/zombies-fps/assets/models/items/.optimized/pistol/pistol.glb +0 -0
- package/examples/zombies-fps/assets/models/items/.optimized/pistol/pistol.glb.md5 +1 -0
- package/examples/zombies-fps/assets/models/items/.optimized/shotgun/shotgun.glb +0 -0
- package/examples/zombies-fps/assets/models/items/.optimized/shotgun/shotgun.glb.md5 +1 -0
- package/examples/zombies-fps/assets/models/npcs/.optimized/ripper-boss/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/npcs/.optimized/ripper-boss/ripper-boss.bin +0 -0
- package/examples/zombies-fps/assets/models/npcs/.optimized/ripper-boss/ripper-boss.gltf +10037 -0
- package/examples/zombies-fps/assets/models/npcs/.optimized/ripper-boss/ripper-boss.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/baseColor_1.png +0 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/baseColor_2.png +0 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/baseColor_3.png +0 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/baseColor_4.png +0 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/soldier-player.bin +0 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/soldier-player.gltf +7679 -0
- package/examples/zombies-fps/assets/models/players/.optimized/soldier-player/soldier-player.gltf.md5 +1 -0
- package/examples/zombies-fps/assets/models/projectiles/.optimized/bullet-trace/baseColor.png +0 -0
- package/examples/zombies-fps/assets/models/projectiles/.optimized/bullet-trace/bullet-trace.bin +0 -0
- package/examples/zombies-fps/assets/models/projectiles/.optimized/bullet-trace/bullet-trace.gltf +136 -0
- package/examples/zombies-fps/assets/models/projectiles/.optimized/bullet-trace/bullet-trace.gltf.md5 +1 -0
- package/examples/zombies-fps/classes/GameManager.ts +8 -1
- package/package.json +4 -1
- package/server.api.json +13820 -7433
- package/server.d.ts +416 -16
- package/server.js +89 -89
@@ -0,0 +1,72 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector2Boolean](./server.vector2boolean.md)
|
4
|
+
|
5
|
+
## Vector2Boolean interface
|
6
|
+
|
7
|
+
A 2-dimensional vector of boolean values.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
interface Vector2Boolean
|
13
|
+
```
|
14
|
+
|
15
|
+
## Properties
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Property
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Modifiers
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Type
|
30
|
+
|
31
|
+
|
32
|
+
</th><th>
|
33
|
+
|
34
|
+
Description
|
35
|
+
|
36
|
+
|
37
|
+
</th></tr></thead>
|
38
|
+
<tbody><tr><td>
|
39
|
+
|
40
|
+
[x](./server.vector2boolean.x.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
boolean
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
|
54
|
+
</td></tr>
|
55
|
+
<tr><td>
|
56
|
+
|
57
|
+
[y](./server.vector2boolean.y.md)
|
58
|
+
|
59
|
+
|
60
|
+
</td><td>
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
boolean
|
66
|
+
|
67
|
+
|
68
|
+
</td><td>
|
69
|
+
|
70
|
+
|
71
|
+
</td></tr>
|
72
|
+
</tbody></table>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector2Boolean](./server.vector2boolean.md) > [x](./server.vector2boolean.x.md)
|
4
|
+
|
5
|
+
## Vector2Boolean.x property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
x: boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector2Boolean](./server.vector2boolean.md) > [y](./server.vector2boolean.y.md)
|
4
|
+
|
5
|
+
## Vector2Boolean.y property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
y: boolean;
|
11
|
+
```
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector2Like](./server.vector2like.md)
|
4
|
+
|
5
|
+
## Vector2Like interface
|
6
|
+
|
7
|
+
A 2-dimensional vector.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
interface Vector2Like
|
13
|
+
```
|
14
|
+
|
15
|
+
## Properties
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Property
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Modifiers
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Type
|
30
|
+
|
31
|
+
|
32
|
+
</th><th>
|
33
|
+
|
34
|
+
Description
|
35
|
+
|
36
|
+
|
37
|
+
</th></tr></thead>
|
38
|
+
<tbody><tr><td>
|
39
|
+
|
40
|
+
[x](./server.vector2like.x.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
number
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
|
54
|
+
</td></tr>
|
55
|
+
<tr><td>
|
56
|
+
|
57
|
+
[y](./server.vector2like.y.md)
|
58
|
+
|
59
|
+
|
60
|
+
</td><td>
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
number
|
66
|
+
|
67
|
+
|
68
|
+
</td><td>
|
69
|
+
|
70
|
+
|
71
|
+
</td></tr>
|
72
|
+
</tbody></table>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector2Like](./server.vector2like.md) > [x](./server.vector2like.x.md)
|
4
|
+
|
5
|
+
## Vector2Like.x property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
x: number;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector2Like](./server.vector2like.md) > [y](./server.vector2like.y.md)
|
4
|
+
|
5
|
+
## Vector2Like.y property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
y: number;
|
11
|
+
```
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Vector3](./server.vector3.md) > [dot](./server.vector3.dot.md)
|
4
|
+
|
5
|
+
## Vector3.dot() method
|
6
|
+
|
7
|
+
Returns the dot product of this vector and another vector.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
dot(vector3: Vector3): number;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
vector3
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Vector3](./server.vector3.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
the other vector
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
number
|
53
|
+
|
54
|
+
the dot product of this and vector3
|
55
|
+
|
package/docs/server.vector3.md
CHANGED
@@ -350,6 +350,20 @@ Calculates the distance between the current vector and another vector.
|
|
350
350
|
Divides each component of the current vector by the corresponding component of another vector.
|
351
351
|
|
352
352
|
|
353
|
+
</td></tr>
|
354
|
+
<tr><td>
|
355
|
+
|
356
|
+
[dot(vector3)](./server.vector3.dot.md)
|
357
|
+
|
358
|
+
|
359
|
+
</td><td>
|
360
|
+
|
361
|
+
|
362
|
+
</td><td>
|
363
|
+
|
364
|
+
Returns the dot product of this vector and another vector.
|
365
|
+
|
366
|
+
|
353
367
|
</td></tr>
|
354
368
|
<tr><td>
|
355
369
|
|
Binary file
|
Binary file
|
@@ -0,0 +1,356 @@
|
|
1
|
+
{
|
2
|
+
"asset": {
|
3
|
+
"generator": "glTF-Transform v4.1.1",
|
4
|
+
"version": "2.0"
|
5
|
+
},
|
6
|
+
"accessors": [
|
7
|
+
{
|
8
|
+
"type": "SCALAR",
|
9
|
+
"componentType": 5123,
|
10
|
+
"count": 36,
|
11
|
+
"bufferView": 0,
|
12
|
+
"byteOffset": 0
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"type": "VEC3",
|
16
|
+
"componentType": 5126,
|
17
|
+
"count": 24,
|
18
|
+
"max": [
|
19
|
+
0.140625,
|
20
|
+
1.7109375,
|
21
|
+
0.03125
|
22
|
+
],
|
23
|
+
"min": [
|
24
|
+
-0.171875,
|
25
|
+
0.5234375,
|
26
|
+
-0.09375
|
27
|
+
],
|
28
|
+
"bufferView": 1,
|
29
|
+
"byteOffset": 0
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"type": "VEC3",
|
33
|
+
"componentType": 5126,
|
34
|
+
"count": 24,
|
35
|
+
"bufferView": 1,
|
36
|
+
"byteOffset": 12
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"type": "VEC2",
|
40
|
+
"componentType": 5126,
|
41
|
+
"count": 24,
|
42
|
+
"bufferView": 1,
|
43
|
+
"byteOffset": 24
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"type": "VEC3",
|
47
|
+
"componentType": 5126,
|
48
|
+
"count": 24,
|
49
|
+
"max": [
|
50
|
+
0.0625,
|
51
|
+
1.0625,
|
52
|
+
0.0625
|
53
|
+
],
|
54
|
+
"min": [
|
55
|
+
-0.0625,
|
56
|
+
0.625,
|
57
|
+
-0.0625
|
58
|
+
],
|
59
|
+
"bufferView": 2,
|
60
|
+
"byteOffset": 0
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"type": "VEC2",
|
64
|
+
"componentType": 5126,
|
65
|
+
"count": 24,
|
66
|
+
"bufferView": 2,
|
67
|
+
"byteOffset": 12
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"type": "VEC3",
|
71
|
+
"componentType": 5126,
|
72
|
+
"count": 24,
|
73
|
+
"max": [
|
74
|
+
0.09375,
|
75
|
+
0.15625,
|
76
|
+
0.09375
|
77
|
+
],
|
78
|
+
"min": [
|
79
|
+
-0.15625,
|
80
|
+
-0.09375,
|
81
|
+
-0.09375
|
82
|
+
],
|
83
|
+
"bufferView": 3,
|
84
|
+
"byteOffset": 0
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"type": "VEC2",
|
88
|
+
"componentType": 5126,
|
89
|
+
"count": 24,
|
90
|
+
"bufferView": 3,
|
91
|
+
"byteOffset": 12
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"type": "VEC3",
|
95
|
+
"componentType": 5126,
|
96
|
+
"count": 24,
|
97
|
+
"max": [
|
98
|
+
0.15625,
|
99
|
+
0.09375,
|
100
|
+
0.0000625000029685907
|
101
|
+
],
|
102
|
+
"min": [
|
103
|
+
-0.15625,
|
104
|
+
-0.09375,
|
105
|
+
3.469446951953614e-18
|
106
|
+
],
|
107
|
+
"bufferView": 4,
|
108
|
+
"byteOffset": 0
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"type": "VEC2",
|
112
|
+
"componentType": 5126,
|
113
|
+
"count": 24,
|
114
|
+
"bufferView": 4,
|
115
|
+
"byteOffset": 12
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"type": "VEC3",
|
119
|
+
"componentType": 5126,
|
120
|
+
"count": 24,
|
121
|
+
"max": [
|
122
|
+
0.515625,
|
123
|
+
-0.01718750037252903,
|
124
|
+
0.046875
|
125
|
+
],
|
126
|
+
"min": [
|
127
|
+
-0.171875,
|
128
|
+
-0.20468750596046448,
|
129
|
+
-0.140625
|
130
|
+
],
|
131
|
+
"bufferView": 5,
|
132
|
+
"byteOffset": 0
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"type": "VEC2",
|
136
|
+
"componentType": 5126,
|
137
|
+
"count": 24,
|
138
|
+
"bufferView": 5,
|
139
|
+
"byteOffset": 12
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"bufferViews": [
|
143
|
+
{
|
144
|
+
"buffer": 0,
|
145
|
+
"byteOffset": 0,
|
146
|
+
"byteLength": 72,
|
147
|
+
"target": 34963
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"buffer": 0,
|
151
|
+
"byteOffset": 72,
|
152
|
+
"byteLength": 768,
|
153
|
+
"byteStride": 32,
|
154
|
+
"target": 34962
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"buffer": 0,
|
158
|
+
"byteOffset": 840,
|
159
|
+
"byteLength": 480,
|
160
|
+
"byteStride": 20,
|
161
|
+
"target": 34962
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"buffer": 0,
|
165
|
+
"byteOffset": 1320,
|
166
|
+
"byteLength": 480,
|
167
|
+
"byteStride": 20,
|
168
|
+
"target": 34962
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"buffer": 0,
|
172
|
+
"byteOffset": 1800,
|
173
|
+
"byteLength": 480,
|
174
|
+
"byteStride": 20,
|
175
|
+
"target": 34962
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"buffer": 0,
|
179
|
+
"byteOffset": 2280,
|
180
|
+
"byteLength": 480,
|
181
|
+
"byteStride": 20,
|
182
|
+
"target": 34962
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"samplers": [
|
186
|
+
{
|
187
|
+
"magFilter": 9728,
|
188
|
+
"minFilter": 9728,
|
189
|
+
"wrapS": 33071,
|
190
|
+
"wrapT": 33071
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"textures": [
|
194
|
+
{
|
195
|
+
"source": 0,
|
196
|
+
"sampler": 0
|
197
|
+
}
|
198
|
+
],
|
199
|
+
"images": [
|
200
|
+
{
|
201
|
+
"mimeType": "image/png",
|
202
|
+
"uri": "baseColor.png"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"buffers": [
|
206
|
+
{
|
207
|
+
"uri": "sword.bin",
|
208
|
+
"byteLength": 2760
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"materials": [
|
212
|
+
{
|
213
|
+
"alphaMode": "MASK",
|
214
|
+
"alphaCutoff": 0.05,
|
215
|
+
"doubleSided": true,
|
216
|
+
"pbrMetallicRoughness": {
|
217
|
+
"metallicFactor": 0,
|
218
|
+
"baseColorTexture": {
|
219
|
+
"index": 0
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"meshes": [
|
225
|
+
{
|
226
|
+
"primitives": [
|
227
|
+
{
|
228
|
+
"attributes": {
|
229
|
+
"POSITION": 1,
|
230
|
+
"NORMAL": 2,
|
231
|
+
"TEXCOORD_0": 3
|
232
|
+
},
|
233
|
+
"mode": 4,
|
234
|
+
"material": 0,
|
235
|
+
"indices": 0
|
236
|
+
}
|
237
|
+
]
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"primitives": [
|
241
|
+
{
|
242
|
+
"attributes": {
|
243
|
+
"POSITION": 4,
|
244
|
+
"TEXCOORD_0": 5,
|
245
|
+
"NORMAL": 2
|
246
|
+
},
|
247
|
+
"mode": 4,
|
248
|
+
"material": 0,
|
249
|
+
"indices": 0
|
250
|
+
}
|
251
|
+
]
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"primitives": [
|
255
|
+
{
|
256
|
+
"attributes": {
|
257
|
+
"POSITION": 6,
|
258
|
+
"TEXCOORD_0": 7,
|
259
|
+
"NORMAL": 2
|
260
|
+
},
|
261
|
+
"mode": 4,
|
262
|
+
"material": 0,
|
263
|
+
"indices": 0
|
264
|
+
}
|
265
|
+
]
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"primitives": [
|
269
|
+
{
|
270
|
+
"attributes": {
|
271
|
+
"POSITION": 8,
|
272
|
+
"TEXCOORD_0": 9,
|
273
|
+
"NORMAL": 2
|
274
|
+
},
|
275
|
+
"mode": 4,
|
276
|
+
"material": 0,
|
277
|
+
"indices": 0
|
278
|
+
}
|
279
|
+
]
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"primitives": [
|
283
|
+
{
|
284
|
+
"attributes": {
|
285
|
+
"POSITION": 10,
|
286
|
+
"TEXCOORD_0": 11,
|
287
|
+
"NORMAL": 2
|
288
|
+
},
|
289
|
+
"mode": 4,
|
290
|
+
"material": 0,
|
291
|
+
"indices": 0
|
292
|
+
}
|
293
|
+
]
|
294
|
+
}
|
295
|
+
],
|
296
|
+
"nodes": [
|
297
|
+
{
|
298
|
+
"name": "cube",
|
299
|
+
"translation": [
|
300
|
+
0.01562500004975372,
|
301
|
+
0.3515625,
|
302
|
+
0.031249999975123153
|
303
|
+
],
|
304
|
+
"mesh": 0
|
305
|
+
},
|
306
|
+
{
|
307
|
+
"name": "cube",
|
308
|
+
"translation": [
|
309
|
+
0,
|
310
|
+
-0.375,
|
311
|
+
4.419015442517403e-26
|
312
|
+
],
|
313
|
+
"mesh": 1
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"name": "cube",
|
317
|
+
"translation": [
|
318
|
+
0.03125,
|
319
|
+
0.09531250000000013,
|
320
|
+
-4.9753690750664564e-11
|
321
|
+
],
|
322
|
+
"mesh": 2
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"name": "cube",
|
326
|
+
"translation": [
|
327
|
+
0,
|
328
|
+
2.15625,
|
329
|
+
-3.469446951953614e-18
|
330
|
+
],
|
331
|
+
"mesh": 3
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"name": "cube",
|
335
|
+
"translation": [
|
336
|
+
-0.17187499993780792,
|
337
|
+
0.8921875000000001,
|
338
|
+
0.0468750002736453
|
339
|
+
],
|
340
|
+
"mesh": 4
|
341
|
+
}
|
342
|
+
],
|
343
|
+
"scenes": [
|
344
|
+
{
|
345
|
+
"name": "blockbench_export",
|
346
|
+
"nodes": [
|
347
|
+
0,
|
348
|
+
1,
|
349
|
+
2,
|
350
|
+
3,
|
351
|
+
4
|
352
|
+
]
|
353
|
+
}
|
354
|
+
],
|
355
|
+
"scene": 0
|
356
|
+
}
|
Binary file
|