【发布时间】:2012-09-10 16:30:04
【问题描述】:
现在物体向各个方向移动。 但我只想让对象移动 X 或 Z,而不是 Y。
我试试这个。但效果不好。
鼠标移动
// 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;
}
我该如何解决这个问题?
【问题讨论】:
标签: webgl three.js mouse-picking ray-picking