Plugin features: - Token-based authentication (user pastes token from website) - Browse and load official levels - Browse, load, and save personal levels - Export current scene as level config JSON - Import level config into Editor scene - Editor script components for game objects (asteroid, ship, planet, etc.) - Floating UI panel for quick access to tools - Camera speed controls for editor navigation Note: Uses public Supabase anon key (same as website client bundle) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
610 B
TypeScript
16 lines
610 B
TypeScript
/**
|
|
* BabylonJS Editor script component for orbit/movement targets
|
|
* Copy this to your Editor workspace: src/scenes/scripts/TargetComponent.ts
|
|
*
|
|
* Attach to a TransformNode to create an invisible target point.
|
|
* Asteroids can reference this by targetId to orbit or move toward.
|
|
*/
|
|
import { TransformNode } from "@babylonjs/core/Meshes/transformNode";
|
|
|
|
import { visibleAsString } from "babylonjs-editor-tools";
|
|
|
|
export default class TargetComponent extends TransformNode {
|
|
@visibleAsString("Display Name", { description: "Friendly name for this target" })
|
|
public displayName: string = "Target";
|
|
}
|