Add toggle for showing/hiding the character in RenderContainerComponent and implement binding to PlayerModelService

This commit is contained in:
2025-12-27 22:15:19 +01:00
parent dc1b29e52c
commit 63aa7fd550
3 changed files with 30 additions and 5 deletions
@@ -102,6 +102,10 @@ export class RenderContainerComponent implements AfterViewInit, OnDestroy {
this.particleManagerService.onlyIntersectingParticles = !this.particleManagerService.onlyIntersectingParticles;
}
public toggleShowCharacter(): void {
this.playerModelService.showCharacter = !this.playerModelService.showCharacter;
}
/**
* Get the current plane orientation
*/
@@ -116,6 +120,13 @@ export class RenderContainerComponent implements AfterViewInit, OnDestroy {
return this.particleManagerService.onlyIntersectingParticles;
}
/**
* Retrieves the value indicating whether the character is being rendered.
*/
public get showCharacter(): boolean {
return this.playerModelService.showCharacter;
}
/**
* Set the plane orientation
*/