update documentation
This commit is contained in:
parent
295b36a784
commit
7ac91ab5e1
5 changed files with 14 additions and 9 deletions
1
dist/xrfragment.aframe.js
vendored
1
dist/xrfragment.aframe.js
vendored
|
|
@ -1199,7 +1199,6 @@ xrf.frag.pos = function(v, opts){
|
||||||
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
||||||
|
|
||||||
frag.q.getObjects().map( (o) => {
|
frag.q.getObjects().map( (o) => {
|
||||||
console.dir(o)
|
|
||||||
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
||||||
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
||||||
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
||||||
|
|
|
||||||
1
dist/xrfragment.three.js
vendored
1
dist/xrfragment.three.js
vendored
|
|
@ -1199,7 +1199,6 @@ xrf.frag.pos = function(v, opts){
|
||||||
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
||||||
|
|
||||||
frag.q.getObjects().map( (o) => {
|
frag.q.getObjects().map( (o) => {
|
||||||
console.dir(o)
|
|
||||||
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
||||||
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
||||||
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
||||||
|
|
|
||||||
1
dist/xrfragment.three.module.js
vendored
1
dist/xrfragment.three.module.js
vendored
|
|
@ -1199,7 +1199,6 @@ xrf.frag.pos = function(v, opts){
|
||||||
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
||||||
|
|
||||||
frag.q.getObjects().map( (o) => {
|
frag.q.getObjects().map( (o) => {
|
||||||
console.dir(o)
|
|
||||||
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
||||||
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
||||||
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
||||||
|
|
|
||||||
19
index.html
19
index.html
File diff suppressed because one or more lines are too long
|
|
@ -7,7 +7,6 @@ xrf.frag.pos = function(v, opts){
|
||||||
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
if( v.args ) v = v.args[ xrf.roundrobin(v,model) ]
|
||||||
|
|
||||||
frag.q.getObjects().map( (o) => {
|
frag.q.getObjects().map( (o) => {
|
||||||
console.dir(o)
|
|
||||||
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
// if object has no parent (name == 'Scene') use absolute positioning, otherwise relative to parent
|
||||||
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
o.position.x = o.parent.name == 'Scene' ? v.x : o.positionOriginal.x + v.x
|
||||||
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
o.position.y = o.parent.name == 'Scene' ? v.z : o.positionOriginal.y + v.z
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue