OnTriggerStay2D do not called every fixedUpdate
i am using unity 5.4.2f2 Personal, and i think 5.3 has the same issue. OnTriggerStay2D do not called every fixedUpdate. to reproduce, do like below: (1) two gameObject objA and objB, both with a...
View ArticleIncreasing performance with physics 2d settings
can anyone give me an example of increased performance physics 2d settings with low quality physics? My app is lagging in my android phone because of physics. I want to decrease quality of its...
View ArticleFrictionless space
Hey I'm making a 2D space shooter, I have my player moving friction-less like I want and collisions with asteroids work, but when the player collides with an explosion the player slows down which is...
View ArticleRigidbody2D.IsSleeping issue
When checking the velocity of an object with ...velocity.x == 0 && velocity.y == 0 everything works fine but if i use Rigidbody2D.IsSleeping there seems to be a small delay? if (rb.IsSleeping)...
View ArticleOnCollsionExit2D gets invoked wrongly even when the character is colliding...
Hi All, This is my first post. I am trying to use Physics2D.IgnoreLayerCollision to ignore collision between the player and the platform when the player jumps from under it. It works fine without any...
View ArticleSnake Movement Like in Snake vs Box
I am stuck at achieving snake movement of game Snake VS Box. can anyone help me.
View ArticleHow to enable the collision between two objects after using...
Hi, After using the Physics2D.IgnoreCollision() fonction, I've been trying to re enable the collision between the object but I can't find any solution. Is there any fonction that can do the opposite of...
View ArticleOnTriggerEnter2D first collision causes lag/freeze
Hey all, I'm currently developing a mobile game and I ran into a small problem. When my player first collides with an enemy, the game freezes for a bit. The weird thing is that this happens only when...
View ArticleHow can I make 2D physics bounce the same as the 'multiply' bounce combine...
In 3D physics materials, we have the setting of 'Bounce Combine' which dictates how the two physics materials bounciness values combine together to determine the overall bounce of the collision. The...
View Article2D muscle joint?
Hello! I have two RigidBody2D's connected to each other by a HingeJoint2D. I'm looking for a way of connecting one or many "muscles" between them. Like a spring/distance joint that I can...
View ArticleHandling Slopes
Hi Folks, I'm a pretty newbie developer who's been using tutorial to expand their knowledge of game design etc. I've recently started working with a Super Meat Boy style character controller, which is...
View ArticleHow do I do a Snappy Jump in 2D with my 2D Jump Script?
I have a working Jump Script, but the Jump is not as Snappy as I need. I want the Player to Jump immidiately, not Float up a bit and then Jump, like in Version 0.0.2 of [the Game I'm...
View Article[Optimization] - Is "Generate Physics shape", in Import settings, necessary...
Hi, sorry if this is maybe a stupid question but, I was searching about how the option "Generate physics shape" works in Import settings when importing an image to my project and I have found nothing...
View ArticleHow to make Two colliders, don't collide, but still be able of interact with...
Hi, i'm currently developping a game with unity3d (2019.3 version). My problem actualy, is that I don't know how to make two colliders don't collide with each other, but still be able to interact....
View Article2D projectile motion calculation problem and passing different variables
Hey everyone, I am a bit stuck here because I am newbie in Unity. So, I am making a turn based game where player shoots ball at the enemy and then enemy shots back. It is based on real projectile...
View ArticleHow do i make this physics with unity
Hi all i am looking for some material to do new game how do i make physics like the picture below how must i search about the same physics in youtube or forum ![alt text][1] [1]:...
View ArticledeltaTime doesn't work with custom gravity (ECS)
Hi, I'm making a 2d sandbox game, and I'm trying to make my own physics using ECS, but I have a problem with gravity: every frame I move all the entities that have a custom collider attached by an...
View Article[2d] When I shoot bullets they have different speeds
Hello, I have a 2d platforming shooter where the player can shoot where the mouse aims. Everything works, the aiming and shooting are all functional, but for some reason even if I shoot in the same...
View ArticlePushing to Move
So I have a player that I want to move, and the way I want to do that is that when the player clicks, there should be an arm that basically punches the ground to push the player. I want to do this...
View ArticleChange Collider2D size at runtime
I'm trying to create a trigger collider that encapsulates all of its children. I use it to define a room, so the camera is limited to move within the room while the player is inside of it. When the...
View Article