Outer-Wilds-New-Horizons / new-horizons

A tool for modifying or creating new planets, dialogue, ship logs, and more for Outer Wilds.
https://nh.outerwildsmods.com/
MIT License
42 stars 17 forks source link

Generate basic sphere colliders for items/sockets #799

Closed Hawkbat closed 6 months ago

Hawkbat commented 6 months ago

Feature

OWItems and OWItemSockets are targeted using raycasts against their colliders, rather than InteractVolumes or another method. This means that they cannot be interacted with if the detail being spawned doesn't have colliders already set up. To cover this use case, we should add a radius property to the item/itemSocket objects of details that adds a sphere collider with the specified radius, if it's greater than zero.

We should also take into account how this would interact with hasPhysics and physicsRadius which already does this. We should probably reuse the same collider if it has already been added by the other builder.

Context

No response

JohnCorby commented 6 months ago

hasPhysics is actually fundamentally incompatible with items, as they will drop from your hands as soon as you pick them up.

therefore, we do not have to actually worry about the interactions between the 2 options.

Hawkbat commented 6 months ago

Fixed by PR #806