Constructs a new RocketObject.
The rocket's mesh.
The Babylon.js scene.
Protected
meshProtected
sceneStatic
Readonly
TypeAccepts a visitor (for the visitor pattern).
The GameObjectVisitor.
Activates the rocket: adds physics and enables collision.
Adds an observer to the rocket (not used in this implementation).
Adds a sound effect to the rocket.
The sound name.
The StaticSound instance.
Enables collision detection for the rocket's physics body.
Returns the damage value of the rocket.
Returns the unique ID of the rocket.
Returns the main mesh of the rocket.
Returns all meshes associated with the rocket.
Returns the type of the object ("rocket").
Handles contact events (collision), triggers explosion and returns true.
Handles logic when the game is paused (optional).
Handles logic when the game is resumed (optional).
Plays a sound effect by name.
The sound name.
Stops a sound effect by name.
The sound name.
Updates the rocket (no-op by default).
RocketObject represents a rocket enemy in the game.