用户:
治愈绾兮查看:13 回复:5 评论:13 创建时间:2021-03-05T17:09:25
world.onPress(async ({ entity, button, raycast: {
voxelIndex, normal, hitPosition, distance } }) => {
if (button == "action1") {
let v = voxelIndex.add(normal);
entity.position.set(v.x, v.y, v.z)
}
});
见上: