Fix Bugs with Bounding Box Initialized at Runtime - #558
Conversation
|
Issue 1: Handles Incorrectly Appear Issue 2: Errors logged for invalid scale Issue 3: Star-shaped explosion when colliders are enabled with invalid scale. |
|
Issue 1: Handles Incorrectly Appear Issue 2: Errors logged for invalid scale Issue 3: Star-shaped explosion when colliders are enabled with invalid scale. |
Fixes the errors reported in #543, as well as current behavior where an empty game object initialized at runtime will have unreasonable bounds values for one frame and a non-empty prefab like the coffee cup will have handles incorrectly enabled for one frame:
This change ensures that the LateUpdate in BoundsHandleInteractable prevents incorrect vector values and division by zero, and the other odd behavior for that first frame.