Skip to content

Modify vertex-positions of Plane? #972

@matthoz

Description

@matthoz

Hello, I'm new to Three.js and started playing around with the demos. I've tried to modify the positions of my plane like this:

var oGeo = new THREE.PlaneGeometry( 1, 1, 1, 1 );

oGeo.vertices[0].position.z =  -0.5;
oGeo.vertices[0].position.y =  0.2;

That worked for the positioning, but I think my light won't get applied on this plane like it should. There has to be a proper way doing this. Can you help me, please?

What I'm actually trying to do is a tilemap with 16x16 planes. I want to be able to modify the y-position of every plane dynamically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions