在Bevy游戏引擎v0.13中对plane3d进行细分

问题描述 投票:0回答:1

在 Bevy 游戏引擎的最新版本 v0.13 中,如何从具有指定细分数的

Plane3d
形状制作网格?

在 v0.12 中你可以这样做:

let mut mesh = Mesh::from(shape::Plane {
    size: 160.,
    subdivisions: 15,
});

我似乎找不到任何方便的函数来指定新的

Plane3d
形状的细分数量,以取代现已弃用的
shape::Plane
😕

bevy bevy-v0.13.0
1个回答
0
投票

根据 Bevy Discord 服务器上的 chrisbiscardi 的说法:

根据https://github.com/bevyengine/bevy/pull/11773以及对有限/无限平面分割PR的评论(https://github.com/bevyengine/bevy/pull/12426/files #r1555080768)新平面上的细分尚未实现,所以如果您需要的话,我会继续使用 Plane 而不是 Plane3d,即使它已被弃用。 另外,根据跟踪问题,它已计划但尚未完成:https://github.com/bevyengine/bevy/issues/10572

© www.soinside.com 2019 - 2024. All rights reserved.