cryptomax
cryptomax5mo ago

UnownedSelf Event?

It seems like an Unowned event would be potentially more useful/efficient than OwnerIDSelfDidChange because the biggest use case for using that current event is to then check if it is unowned and then request ownership if it is. Which would then fire OwnerIDSelfDidChange again and for all objects that only actually cared if it becomes unowned.
2 Replies
Camobiwon
Camobiwon5mo ago
Couldn't you just subscribe to ownerIDSelfDidChange and check if it becomes -1? The main problem with this is any rigid bodies falling asleep give up ownership, which would just be immediately reclaimed. It seems like the feature request you made would probably be a better way to solve it
cryptomax
cryptomax5mo ago
eh you're right I had thought through that before but then rethought my way back here lol.. Automatic ownership transfer would solve most of the issue