Skip to content

Commit

Permalink
localToGlobal bug fix, phetsims/density-buoyancy-common#367
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Sep 10, 2024
1 parent 5694682 commit ccc51f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/MobiusScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class MobiusScreenView extends ScreenView implements THREEModelVi
* Project a 2d global screen coordinate into 3d global coordinate frame. Default to z distance of 0 (center of masses/pool)
*/
public viewToModelPoint( point: Vector2, modelZ = 0 ): Vector3 {
return this.sceneNode.unprojectPoint( this.globalToLocalPoint( point ), modelZ );
return this.sceneNode.unprojectPoint( this.localToGlobalPoint( point ), modelZ );
}

/**
Expand Down

0 comments on commit ccc51f1

Please sign in to comment.