Contents
What happens when you enable composite in polygon Collider?
When you enable Used by Composite, other properties disappear from the Polygon Collider 2D component, because they are now controlled by the attached Composite Collider 2D. The properties that disappear from the Box Collider 2D are Material, Is Trigger, Used By Effector, and Edge Radius.
How to get compositecollider2d from a collider?
Get the CompositeCollider2D that is available to be attached to the collider. The density of the collider used to calculate its mass (when auto mass is enabled). Get the friction used by the collider. Is this collider configured as a trigger?
What does physicsmaterial2d do in polygoncollider2d in Unity?
The PhysicsMaterial2D that is applied to this collider. Sets whether the Collider will be used or not used by a CompositeCollider2D. Whether the collider is used by an attached effector or not. The game object this component is attached to. A component is always attached to a game object. The tag of this game object.
Why does the collider 2D stay the same size?
If you don’t enable Auto Tiling, the Collider 2D stays the same shape and size, even when the Sprite’s dimensions change. The local offset of the Collider geometry.
How is a box Collider attached to an empty object?
The empty object has a rigidbody (3d) attached to it as it needs to have one in order to use the configurable joint component ( note: I move my player around using this 3d rigid body).The player body however, a child to the graphics, has a box collider 2d attached to it as it after all it is a 2d game and has to collide with other 2d objects.
Why does box Collider 2D collision not work?
Now upon adding the rigidbody 2D collisions did work but as soon as I made the rigidbody 2D have all position and rotation constraints ticked or as soon as I made it kinematic or static it would cease to collide with my platforms.
Is the polygon Collider connected to the platform effector?
My platforms have polygon collider 2d s attached to them (which is connected to a platform effector if that is worth mentioning).