我不在使用地面。我想获取pickPoint来动态添加网格。
scene.onPointerDown = function (evt, pickResult) {
// if the click hits the ground object, we change the impact position
if (pickResult.hit) {
console.log('an object is picked');
} else {
console.log('get world coordinates from evt.x and evt.y');
}
};
答案 0 :(得分:0)