Constructs a new VictoryCondition.
The mesh for the victory object.
The Babylon.js scene.
Static
Readonly
TypeAccepts a visitor (for the visitor pattern). Stops animation, triggers the visitor's victory logic, and plays the victory sound.
The GameObjectVisitor.
Adds a sound effect to the victory object.
The sound name.
The StaticSound instance.
Animates the victory object with a floating up-and-down motion.
Returns the unique ID of the victory object.
Returns the main mesh of the victory object.
Returns all meshes associated with the victory object.
Returns the type of the object ("victory_condition").
Handles contact events (not used for victory objects).
Always false.
Handles logic when the game is paused (no-op).
Handles logic when the game is resumed (no-op).
Called when the parent node's rotation changes. Updates the physics body to match the mesh's new position and rotation.
Called when the parent node starts rotating (not used here).
Plays a sound effect by name.
The sound name.
Starts the floating animation for the victory object.
VictoryCondition represents the end-of-level victory trigger in the game.