amethyst / amethyst/specs-physics

If you use .insert on Write<StorageCollider> you might cause a unwrap() to fail

未關閉
#27 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Rust
星號
96
分支
29
PR 合併指標
30 天內沒有已合併 PR

描述

1. Create a collider and do a tick
2. Replace that with a new collider using Write::insert
-- Modify event is created by Specs, not Remove and insert --
3. let collider_handle = physics_collider.handle.unwrap(); - This line in sync_colliders_to_physics (update_collider) will panic

--

Workaround,
Use Write::remove first.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。