Search Issue Tracker
Duplicate
Votes
19
Found in
4.3.1f1
Issue ID
581260
Regression
No
OnTriggerEnter2D behaves like OnTriggerStay2D under certain circumstances
Steps to reproduce :
- import the project attached
- open the "Test" scene
- press play and notice the messages in the console
Duplicate : http://issuetracker.unity3d.com/issues/ontriggerstay2d-is-called-not-properly
-
Keshav
Dec 23, 2013 13:32
OnTriggerEnter2D behaves as OnTriggerStay2D when the object is scaled
-
NicolasVidal
Dec 17, 2013 11:23
Steps to reproduce from scratch :
- create an object with a Rigidbody2D and a Collider2D (trigger)
- create another object with a Collider2D and a RigidBody2D (trigger)
- set gravity scale to 0 for both of them
- set the first one as a child of the second one
- attach a script with debug messages in OnTriggerEnter2D and OnTriggerExit2D on the child
- press play, make the child rotate inside the parent
=> Unexpected behaviours :
* OnTriggerEnter2D is raised each frame we rotate the child
* OnTriggerExit2D is never raisedThe same problem exists with OnCollision2D and non trigger colliders.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- An image bleeds out of the borders of a Mask when the project is opened with the iOS Build Support module
- Shadows do not appear on the Material with a custom shader which uses screen space shadow map in HDRP when Ray Traced Shadows are enabled
- An emoji is not shown in the UI Builder Viewport and the Game view when it is placed in the Labels text attribute and Usage Hints is set to Dynamic Color
- The Sprite Renderers are looking for Secondary Textures from the wrong page within the Sprite Atlas when the Sprite Atlas has a large amount of textures for packing
- [URP] Invalid update of shader stripping settings
This is a duplicate of issue #575758