Unity 4.3 Physics 2d Change Axis
I have made a small research on Google but could not find any answer to my question since this feature is quite new. Does anyone knows if it is possible to use new 2D Physics engine on x and z planes...
View Article2d colliders on 3d colliders
Using the new unity 2d engine with unity 2d physics. I am wondering why the 2d physics is ignoring the classic(3d) box colliders. Is there a setting I am missing? or does 2d physics ignore 3d...
View ArticleHow to make OnTriggerEnter2D work?
I'm using Unity 4.3 and I was testing the 2D physics. Somehow I can't get a collision response from a kinetic body and a trigger. Here's the basic setup: Player +- RigidBody2D (kinematic) +-...
View Article2D box colliders gap
Hello. I'm trying out the new 2D features of 4.3 and was testing the 2D physics. I made two sprite boxes and added box colliders to them, as well as a rigid body to one of them. They collide fine, but...
View ArticleOne way platform using 2D Colliders?
I am currently in the process of building a platform game and I am looking into porting it over to the new 2D physics engine that was added in 4.3. It looks like most of it should port over, but I have...
View ArticleChaging rigidbody2d.mass
I can't seem to change the mass of a 2d rigid body at run time using rigidbody2d.mass, although I am able to change it using the inspector. I've searched unity answers but all I could find was a...
View ArticleRigidbody2D mouse follow
I'm trying to get a Rigidbody2D to follow my mouse and have physics responses. In 3D I'd use Rigidbody.MovePosition, but that doesn't exist for 2D. When I simply move the transform, I get...
View Article2D Physics, Pong ball is moving by itself!
I have a ball in a pong game I am making (start small, right?) :) The problem is, it's haunted. The ball has been set with a rigidbody and collider (both appropriately 2D). So have the paddles, etc. I...
View Articlegame hags with several Polygon Colliders on the scene
Hello, Recently I have got a problem with my 2d game project, and that confuses me a lot. The game is working fine on PC, but hangs on a splash screen when running on android (Nexus 5). Hangs forever,...
View Article2D Physics and Jump-Through Platforms
I need to set up jump-through platforms that will support characters landing on them from above but will allow them to jump through them from below. There was a fairly elegant solution in Unity...
View ArticleWhy does my 2d player stick to the floor when he lands?
Hey guys, I am running into a bug in my 2d platformer. Whenever my player lands from a jump, he pauses for a moment before he continues to move. The only time it doesn't happen is when I set the...
View ArticleSlope polygon collider 2D causing box collider 2D to 'bump' while sliding on it.
I'm doing procedural terrain generation. So far I've created the mesh, and attached a 2D polygon collider to it. The terrain is made up of hills going up and down. ![alt text][1] After doing so, I put...
View ArticleHow to jump always with the same height
Hello guys, i have a problem. I'm using physics 2D, and i'm trying to make a character jump always the same height with Addforce, but in vain. I alreaddy have tryed this: acceleration =...
View ArticleHelp me change the code to work with Physics 2D
Could anyone help me to change this code to work with Physics 2D because all of my game works with Physics 2D and this code doesn't but I'm not sure how to do it. It works fine with Physics but it...
View Article2D Physics Rotate Sprite Level With Floor
I need to, using the 2D Physics, make my player rotate so that it is level with the floor. I've seen solutions before, but all of the use 3D Physics. I'm using 2D Physics and my camera is facing...
View ArticleProblems about prefabs and velocity affected by scripts
I am making a game which is similar to breakout but replacing blocks with different enemies. And now there are some problems. One of the problem is I combined the health bar, enemy and the scripts as...
View Article2D Sandbox physics problem
I have a problem with implementing sandbox like functionality to my game. The idea is that I have a huge object that is composed of multiple smaller blocks and when player cuts through the object the...
View ArticlePushing Objcts away from each other when things get in the way
I have a game dynamic which requires me to be able to push two object away from each other, like two magnets. I know how to do that. But what I'm struggling with is when 1 of those 2 magnets runs into...
View ArticleCan anyone explain : Physics 2D: Fixed regression where 2D colliders didn't...
Hey all, I was reading through the What's new in Unity 4.5.3 and I didn't understand this: "Physics 2D: Fixed regression where 2D colliders didn't update when animated." It doesn't mean that a 2D...
View ArticleHow can I make edge collider to behave like normal(polygon) colyder?
Objects with edge colliders are affected by physics, but they don't rotate like polygon colliders do. Is there a way to change this?
View Article