mirror of
https://github.com/lubosz/overte.git
synced 2025-05-28 06:31:54 +02:00
Merge pull request #6731 from imgntn/grabhotfix1
fix handControllerGrab merge problems
This commit is contained in:
commit
32b9f60bd5
1 changed files with 4 additions and 9 deletions
|
@ -274,8 +274,6 @@ function MyController(hand) {
|
||||||
this.triggerValue = 0; // rolling average of trigger value
|
this.triggerValue = 0; // rolling average of trigger value
|
||||||
this.rawTriggerValue = 0;
|
this.rawTriggerValue = 0;
|
||||||
this.rawBumperValue = 0;
|
this.rawBumperValue = 0;
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
//for visualizations
|
//for visualizations
|
||||||
this.overlayLine = null;
|
this.overlayLine = null;
|
||||||
this.particleBeam = null;
|
this.particleBeam = null;
|
||||||
|
@ -283,9 +281,7 @@ function MyController(hand) {
|
||||||
//for lights
|
//for lights
|
||||||
this.spotlight = null;
|
this.spotlight = null;
|
||||||
this.pointlight = null;
|
this.pointlight = null;
|
||||||
=======
|
|
||||||
this.overlayLine = null;
|
this.overlayLine = null;
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
this.ignoreIK = false;
|
this.ignoreIK = false;
|
||||||
this.offsetPosition = Vec3.ZERO;
|
this.offsetPosition = Vec3.ZERO;
|
||||||
|
@ -510,7 +506,7 @@ function MyController(hand) {
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"particleRadius": 0.015,
|
"particleRadius": 0.015,
|
||||||
"radiusSpread": 0.005,
|
"radiusSpread": 0.005,
|
||||||
// "radiusStart": 0.01,
|
// "radiusStart": 0.01,
|
||||||
// "radiusFinish": 0.01,
|
// "radiusFinish": 0.01,
|
||||||
|
@ -539,7 +535,7 @@ function MyController(hand) {
|
||||||
visible: true,
|
visible: true,
|
||||||
color: color,
|
color: color,
|
||||||
emitSpeed: speed,
|
emitSpeed: speed,
|
||||||
speedSpread:spread,
|
speedSpread: spread,
|
||||||
lifespan: lifespan
|
lifespan: lifespan
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1085,7 +1081,6 @@ function MyController(hand) {
|
||||||
this.currentObjectRotation = Quat.multiply(handChange, this.currentObjectRotation);
|
this.currentObjectRotation = Quat.multiply(handChange, this.currentObjectRotation);
|
||||||
|
|
||||||
Entities.callEntityMethod(this.grabbedEntity, "continueDistantGrab");
|
Entities.callEntityMethod(this.grabbedEntity, "continueDistantGrab");
|
||||||
|
|
||||||
// mix in head motion
|
// mix in head motion
|
||||||
if (MOVE_WITH_HEAD) {
|
if (MOVE_WITH_HEAD) {
|
||||||
var objDistance = Vec3.length(objectToAvatar);
|
var objDistance = Vec3.length(objectToAvatar);
|
||||||
|
@ -1113,8 +1108,8 @@ function MyController(hand) {
|
||||||
this.overlayLineOn(handPosition, grabbedProperties.position, INTERSECT_COLOR);
|
this.overlayLineOn(handPosition, grabbedProperties.position, INTERSECT_COLOR);
|
||||||
}
|
}
|
||||||
if (USE_PARTICLE_BEAM_FOR_MOVING === true) {
|
if (USE_PARTICLE_BEAM_FOR_MOVING === true) {
|
||||||
this.handleDistantParticleBeam(handPosition,grabbedProperties.position, INTERSECT_COLOR)
|
this.handleDistantParticleBeam(handPosition, grabbedProperties.position, INTERSECT_COLOR)
|
||||||
// this.handleDistantParticleBeam(handPosition, this.currentObjectPosition, INTERSECT_COLOR)
|
// this.handleDistantParticleBeam(handPosition, this.currentObjectPosition, INTERSECT_COLOR)
|
||||||
}
|
}
|
||||||
if (USE_POINTLIGHT === true) {
|
if (USE_POINTLIGHT === true) {
|
||||||
this.handlePointLight(this.grabbedEntity);
|
this.handlePointLight(this.grabbedEntity);
|
||||||
|
|
Loading…
Reference in a new issue