Tagged Questions
5
votes
3answers
453 views
Make my NPC “see” gameobjects around him in Unity
I have a walking NPC that will "see" the wall in front or behind him (2d gameplay) and that will react accordingly.
I was thinking to attach him to an invisible collider that would react to objects ...
1
vote
4answers
359 views
Have a simple enemy detecting he touch a wall to make him stop/turn around
I am doing a very simple scene with a cube sliding on the "ground". Once the cube reach a wall, he is blocked.
I want to detect the wall to make the cube go in the other direction. I used ...
2
votes
1answer
249 views
How can I set up a Pong-style game using the physics system in Unity?
I've just been using Unity and chose to learn it by making a Pong game which sounded simple enough as a "hello world" type of game. My goal was to try and encompass enough of the built in engine ...
0
votes
1answer
149 views
How to find which side of a collider has been hit from hit.normal?
In Unity3d, i can get the normal of the surface with which the collider collides using hit.normal, but is there a way to find which side has been hit what is provided bu Unity3d?
One solution is to ...
2
votes
3answers
567 views
Unity, changing gravity game & stopping character when he hit a wall
i am currently working on a 2d puzzle game in the unity engine. One of the aspect of this game is the possibility to rotate the level of 90°. It also rotate the gravity.
The main character is not ...
0
votes
0answers
306 views
In Unity, how do I implement a shmup boss with invincible zone and target zone? [closed]
I have a 2d game with a boss represented as a plane with a texture. Around the plane there is a collision box. There is another empty gameobject with a collision box as a child of my boss.
The 2nd ...