engine icon indicating copy to clipboard operation
engine copied to clipboard

Raycast 命中的 hit 数据里返回 shapeId

Open ch-daisy opened this issue 1 year ago • 1 comments

公益之城有一个raycast的需求,体素模型的包围盒是创建的collidershape,塞到了一个colloder里面,点击的时候希望能把命中的collidershape的id 返回,用来删除体素模型的collidershape Collider 最好能顺便加一下 removeShapeById

ch-daisy avatar Feb 21 '24 03:02 ch-daisy

我直接给你返回shape 你调用removeShape是不是也可以 @ch-daisy

luzhuang avatar Feb 21 '24 03:02 luzhuang

https://github.com/galacean/runtime/pull/2004

luzhuang avatar Feb 26 '24 01:02 luzhuang