Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created June 12, 2022 07:30
Show Gist options
  • Save flushpot1125/94ce6957a54618d812c270178f0f9922 to your computer and use it in GitHub Desktop.
Save flushpot1125/94ce6957a54618d812c270178f0f9922 to your computer and use it in GitHub Desktop.
public onStart(): void {
this._leftArmBone = this._scene.getBoneByName("RightHandThumb1");
this._leftArmBone.position = new Vector3(0,0,0);
this._sword.position = new Vector3(0,0,0);
}
public onUpdate(): void {
this._sword.attachToBone(this._leftArmBone,this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment