猫史档案馆


[box3求助]这段代码生成的喵模型在地图中不显示,但是有碰撞!

用户:一个STUB用户_6923702一个STUB用户_6923702查看:1 回复:2 评论:1 创建时间:2021-02-13T17:24:42


world.onPress(({ button, entity, raycast }) => {
    if (button === 'action0') {

        const a = world.createEntity({

            mesh: 'mesh/boom.vb',
            position: raycast.hitPosition.add(new Box3Vector3(0,1,0)),
            meshScale: new Box3Vector3(3, 3, 3),
            collides: true,
            fixed: true,
            gravity: false,
            meshInvisible: false
            


        })
        
        world.say(raycast.hitPosition);
        for (var i = 0; i < 5; i++) {
            a.meshScale += i / 10;
        };
        world.sound("audio/boom.mp3")
    }
})

如题,求解


回复

上一页1 页 / 共 1下一页
****************

https://www.code.game/home

点赞0


评论


****************

www.code.game/home

点赞0


评论