|
|
@ -459,15 +459,15 @@ export class Item { |
|
|
|
|
|
|
|
|
if (this.loadState !== 'loaded') return; |
|
|
if (this.loadState !== 'loaded') return; |
|
|
|
|
|
|
|
|
if (this.hoverIndicator) { |
|
|
// if (this.hoverIndicator) {
|
|
|
this.pulseTime += delta * 5; // Adjust the multiplier to change pulse speed
|
|
|
// this.pulseTime += delta * 5; // Adjust the multiplier to change pulse speed
|
|
|
const minOpacity = 0.1; |
|
|
// const minOpacity = 0.1;
|
|
|
const maxOpacity = 0.8; |
|
|
// const maxOpacity = 0.8;
|
|
|
// Create a sine wave that oscillates between 0 and 1
|
|
|
// // Create a sine wave that oscillates between 0 and 1
|
|
|
const oscillation = (Math.sin(this.pulseTime) + 1) / 4; |
|
|
// const oscillation = (Math.sin(this.pulseTime) + 1) / 4;
|
|
|
// Apply the oscillation to the desired opacity range
|
|
|
// // Apply the oscillation to the desired opacity range
|
|
|
this.hoverIndicator.material.opacity = minOpacity + oscillation * (maxOpacity - minOpacity); |
|
|
// this.hoverIndicator.material.opacity = minOpacity + oscillation * (maxOpacity - minOpacity);
|
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
this.lastPosition = this.object.position.clone(); |
|
|
this.lastPosition = this.object.position.clone(); |
|
|
|
|
|
|
|
|
|