Two edge colliders
Good day! I'm a beginner developer, and I have a problem which is on the Russian-speaking forums have not been able to solve. The fact is that I have 2 objects are added to the edge collider2d and...
View ArticleUpgrading Unity to 5 threw off all 2d physics. Why? How to fix?
Was making a 2d platformer in unity 4.6 then upgraded to unity 5 and now my player and enemies seems to be slowly floating away. All the project settings are the same as before. Not sure exactly what...
View ArticleWhen to use Effectors instead of scripting the behavior?
Performance wise or any other aspect, what are the scenarios that dictate the effectors as the right tool to use?
View ArticleHow to change distance but maintain speed and height of jump
Suppose I have a block (RigidBody2d) traveling on a flat surface at a constant velocity to the right. The block jumps when the player presses the jump key, and the rigidbody has a force added onto it...
View ArticleOptimal way to check repeatedly close objects
Hi, I am developing simple flammable object. I have made it but i am having second thoughts on implementation. I have flammable object that can catch fire.Every flammable object that is on fire cast...
View ArticleFerr2d terrain physics material does not affect
I have sliding gameobject with polygon collider2D and two ferr2D terrains with different physic materials. First one have friction 0 and the second one 5. But when my gameobject slides throught/across...
View ArticleHow to detect what Gameobjects are in a Collider2D? (C#)
I am making a tower defense game (2D) and I am working on making the towers shoot the enemies. I want my turrent to shoot every 1 second and hit the enemy the closest to the front. My solution to this...
View ArticleRigidbody2D is kind of flying instead of falling when the child box is colliding
Hi everyone, I got a strange issue, everything is in the title, but i'll add some details : I'm making a 2D side scroller game, the player can move on X and Y axes like in Castle Crashers. So the...
View ArticleGround Check Issue
So ive been following the 2d controllers tutorial and he was covering the groundcheck and falling physics. The problem im having is that when the player is not on ground, the ground boolean does check...
View Articledropping series of masses connected by spring
I am trying to show how a series of 2D masses connected by string will fall. I have connected 10 masses with a spring joint. However they all fall at the same time. I would like to make the simulation...
View ArticleHow to see if two objects are touching each other
So, I am trying to check if two objects are touching each other, and this is the part of the script that I cant get to work public static bool IsTouchingS (BoxCollider2D.StraightS,...
View ArticleTrigger problem on devices
I have the following problem. If i put an object with collider and animation, and dont use a rigid body, when i use OnTriggerStay2D the trigger registers without even the player touch the trigger. If i...
View ArticleHow to use Unity Terrain with 2D Physics?
[Unity's 2D Physics](http://docs.unity3d.com/Manual/Collider2D.html) are constrained to X and Y axes. [Unity's Terrain](http://docs.unity3d.com/Manual/terrain-UsingTerrains.html) is oriented along X...
View ArticleHow to calculate angular velocity after a collision?
Hi all! I'm developing a Peggle-style game and I need to calculate the angular velocity to apply to a ball as a result of bouncing off a wall. My ball has a Rigidbody2D and a CircleCollider2D attached...
View ArticleHow do I create 2D swirling wind patterns? (Use fluid dynamics?)
Hi guys, We're making a 2D game and I want to test some 2D wind patterns which will swirl in different directions (so, not a simple horizontal directional windzone, but involving curves). A good...
View ArticlePhysics.OverlapSphere not working
if (isactive == true) { ParticleManager.instance.PlayPlarticles(1, 0.2f, Color.yellow, 1f, transform.position); explodetime--; if (explodetime == 0) { Collider[] hitColliders =...
View ArticleHow to make flips, backflips like in game Backflip madness
Hello, how to create flips, backflips physics like in game Backflip Madness? Or is there any assets ? https://youtu.be/_wPDk-5SCVU
View Article2D Snail-like movement
Hello, I want to create a snail-like moving creature in 2D which is just made of muscles and nodes. The muscles can expand and contract and the nodes hold the muscles together. This is how I want my...
View ArticleHow do you make 2D bounce physics work? (on a small scale)
= EDIT: I have either solved or found a work around for this by scaling up the objects in question after seeing mention of something vaguely related elsewhere. But if that is the fix that leads to...
View ArticlePrevent physics shaking
Hi people.. I'm having some problems with physics, my character keeps passing through moving floors/objects. This (poorly) animation is what I expect:...
View Article