-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
56 changed files
with
30,739 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
class SpinSystem extends MRSystem { | ||
constructor() { | ||
super() | ||
|
||
console.log(this.componentName); | ||
} | ||
|
||
update(deltaTime, frame) { | ||
for(const entity of this.registry){ | ||
let component = entity.components.get("spin") | ||
if (Math.abs(component.speed) < Math.abs(component.maxspeed)) { | ||
entity.components.set("spin", { speed: parseFloat(component.speed) + parseFloat(component.acceleration) }) | ||
} | ||
entity.object3D.rotation.z += parseFloat(component.speed); | ||
} | ||
} | ||
|
||
attachedComponent(entity) { | ||
entity.components.set("spin", { speed: 0 }) | ||
} | ||
|
||
detachedComponent(entity) { | ||
|
||
} | ||
|
||
rotate = (entity, component) => { | ||
|
||
} | ||
} | ||
|
||
let spinsys = new SpinSystem() |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"asset":{ | ||
"generator":"Khronos glTF Blender I/O v4.0.43", | ||
"version":"2.0" | ||
}, | ||
"scene":0, | ||
"scenes":[ | ||
{ | ||
"name":"Scene", | ||
"nodes":[ | ||
0 | ||
] | ||
} | ||
], | ||
"nodes":[ | ||
{ | ||
"mesh":0, | ||
"name":"logo" | ||
} | ||
], | ||
"meshes":[ | ||
{ | ||
"name":"logo", | ||
"primitives":[ | ||
{ | ||
"attributes":{ | ||
"POSITION":0, | ||
"NORMAL":1 | ||
}, | ||
"indices":2 | ||
} | ||
] | ||
} | ||
], | ||
"accessors":[ | ||
{ | ||
"bufferView":0, | ||
"componentType":5126, | ||
"count":6518, | ||
"max":[ | ||
28.86751365661621, | ||
30.618621826171875, | ||
25 | ||
], | ||
"min":[ | ||
-21.13202476501465, | ||
-19.381378173828125, | ||
-25 | ||
], | ||
"type":"VEC3" | ||
}, | ||
{ | ||
"bufferView":1, | ||
"componentType":5126, | ||
"count":6518, | ||
"type":"VEC3" | ||
}, | ||
{ | ||
"bufferView":2, | ||
"componentType":5123, | ||
"count":39096, | ||
"type":"SCALAR" | ||
} | ||
], | ||
"bufferViews":[ | ||
{ | ||
"buffer":0, | ||
"byteLength":78216, | ||
"byteOffset":0, | ||
"target":34962 | ||
}, | ||
{ | ||
"buffer":0, | ||
"byteLength":78216, | ||
"byteOffset":78216, | ||
"target":34962 | ||
}, | ||
{ | ||
"buffer":0, | ||
"byteLength":78192, | ||
"byteOffset":156432, | ||
"target":34963 | ||
} | ||
], | ||
"buffers":[ | ||
{ | ||
"byteLength":234624, | ||
"uri":"logo.bin" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Blender 4.0.0 MTL File: 'None' | ||
# www.blender.org |
Oops, something went wrong.