Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created October 10, 2025 21:58
Show Gist options
  • Select an option

  • Save flushpot1125/29e4bcdee4d7046cc3ad838f80d084ce to your computer and use it in GitHub Desktop.

Select an option

Save flushpot1125/29e4bcdee4d7046cc3ad838f80d084ce to your computer and use it in GitHub Desktop.
private _shoot(): void {
const offset = new Vector3(20, 0, 0); // プレイヤーの前方に配置
const position = this._mesh.position.add(offset);
new Bullet(this._mesh.getScene(), position);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment