A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Examples of what? The OnCollisionEnter2D thing? Or how to add a script to a prefab?
If it will take collisions from a 'pick axe/item' you will need a OnCollisionEnter2D and then in that function you can get the...
The physics engine can still apply forces to the rigid body
This scenario is very rare and only occurs from a specific angle. I'll try the edge radius, I think that might do the trick. Not sure if...
Currently using that. I'm talking more about what I need to change in the Project Settings -> Physics 2D
Make a prefab of the objects and or a parent of the group and you can drag and drop the prefab?
The objects are probably colliding with each other and shooting in a direction?
I am using some Composite colliders and detecting the object within the collider based on the contact point the OnCollisionEnter2D provides in the...
If you look closely at the red line. The hit.normal is causing the point I calculate to be outside of the square. So the game thinks no collision...
Looks like when it is colliding on the corner of a block the position we calculate is still off a little bit. Any thoughts for this scenario? The...
The lower timestep solved the problem.
Maybe its this: https://answers.unity.com/questions/175494/oncollisionenter-not-always-triggered-with-bouncy.html I'll take a look when I get home.
Not sure what is going on / is the problem. I have these blocks are part of a composite collider and when my ball hits too many too quickly it...
Awesome man! Works like a charm! I would've been stuck with buggy code if not for you figuring out this weird issue. You should add a donate link...
Ive adjusted it so the red line is now in one of the Rect Colliders and I still cant get colliders from Physics2D.OverlapPointAll bool...
The red line is the one that was set to cyan
The red ball is where it was hit and the green lines seems to be too far above the block.
bool hitCompositeCollider = collision.otherCollider.GetComponent<CompositeCollider2D>() != null; if (hitCompositeCollider) {...
Thanks, I'll give this a shot when I get home.
I'm not using a Tilemap. I am generate my game objects on the fly based on the devices width/height. I am trying to figure out which individual...