prieston
prieston

Reputation: 1506

Offset world coordinates three js

Is there a way to offset the world coordinates in three.js? I want to translate the center(0,0,0) by some value so the center will be at the center of my div element.

Upvotes: 0

Views: 657

Answers (1)

gaitat
gaitat

Reputation: 12642

You can add a translation transform to your scene hierarchy.

scene.position.set( x, y, z );

But if you have only one object hanging of your scene you should apply the transform there.

Upvotes: 2

Related Questions