Skip to content
Snippets Groups Projects
Unverified Commit 5ead1aa1 authored by Jamie Temple's avatar Jamie Temple
Browse files

feat: convenient access to shape position

parent dc2e6dad
No related branches found
No related tags found
1 merge request!1feat: base project
...@@ -18,6 +18,10 @@ abstract class Shape implements PipelineObserver { ...@@ -18,6 +18,10 @@ abstract class Shape implements PipelineObserver {
return this._object3d!; return this._object3d!;
} }
public get position(): THREE.Vector3 {
return this.object3d.position;
}
update(_deltaTime: number): void {/* INTENTIONAL */ } update(_deltaTime: number): void {/* INTENTIONAL */ }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment