Add colliders to screen edge.
I am building a simple single screen game (pong just to do a project without a tutorial) and i want it to work on multiple resolutions. Therefore i need to attatch colliders and paddles to the screen...
View ArticleEnabling collisions after a GameObject has started moving. Unity 2D
I'm working on a small 2D tile-based platformer. I have one 2D capsule GameObject that acts as a placeholder for the player. The "Player" has a Rigidbody and a Capsule collider attached. They drop into...
View ArticleHow to generate the physics shape when importing SVG?
I'm using the package `Vector Graphics v2.0-preview.20` in order to import SVGs. I've checked the `Generate physics shape` option in order to have automatic physics on these objects. However, either...
View Article,Invert one of colliders
![alt text][1] [1]: /storage/temp/196253-block-example.png Hi, I am making 2d game where I play with unity physics. The game is about dropping different block prefabs from above down and making some...
View ArticleHow to pick up an object and make it follow the cursor, but realistically?
We're making a 2D game where one of the main mechanics is picking up objects with a cursor and positioning them properly (i.e. picking up a log, rotating it and leaning on a wall, so you can use it as...
View ArticleAddExplosionForce 2d workaround not working
I'm attempting to create a basic explosion in Unity 2d engine. Unfortunately the unity function addExplosionForce doesn't natively work with 2d rigidbodies, but I was able to find the following...
View ArticlePhysics scenes copy all colliders etc from main scene
Hello, I am trying to use physic scenes to perform some simulations outside of the main scene. That being said, I need all of the colliders from the main scene in the physics scenes. What is the...
View ArticleEnemies in top down shooter being affected by physics of bullet
Hi, I am making a top down shooter mobile game, and I want to know how to make the player's bullets not push the enemies around. The enemy gets pushed back a little bit by each projectile that the...
View ArticleLineRender and Gizmos.DrawRay are showing different results for the same...
@jackmw94 @hexagonius I am supplying the same inputs for both Gizmos.DrawRay and my LineRender but the **output lines dont match each other**. I want the **resulting LineRender** to draw the same line...
View ArticleTrying to create a '2D 8 Ball Pool' game - Trajectory Prediction
I am trying to create a game similar to (Pocket Run Pool) https://www.youtube.com/watch?v=ewlAE6NQnsI&t=215s a 2D pool game that is much simpler than a 3D one I need help with creating code for...
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 ArticleNeed help with physics based 2D character [SOLVED]
I have a character (chouette) that can jump twice in the direction of the mouse pointer when mouse0 is clicked. When he hits the ground the movement script is temporarely disabled to let the sprite...
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 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 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 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 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 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 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 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 Article