now Objects move every direction. but I want to Objects move only X or Z, not Y.
I try this. but result is not good.
on MouseMove
// OBJECT SELECTED
if ( SELECTED )
{
var intersects = ray.intersectObject( PICKING_PLANE );SELECTED.position.set( intersects[ 0 ].point.x, 0, intersects[ 0 ].point.y ); /*SELECTED.position.copy( intersects[ 0 ].point.subSelf( offset ) );*/
return;
}
How can I solve this problem?