Quantcast
Browsing all 101 articles
Browse latest View live

Rotating camera around object up/down problem

Hey everyone! Ive been into unity3d for a few days now, ive browsed through several Q&A posts and havent found solution to this yet. What im trying to do is make the main camera orbit around player...

View Article


Enemy's gather around the player.. How?!

So I am working on some combat for my game... I have several enemy's wandering in an area. When the player attacks they will come towards the player. I use this code to get a position in front of the...

View Article


Rotate a moving object

I want to rotate a ball in a circle, and then move the ball into random places. So the circle it makes should remain the same size but the ball should still be able to move around. I tried this...

View Article

Mouse control rotate around player

I have a third person camera that smoothly looks at and follows the player. While the player is not in battle, I want the player to be able to hold RMB and rotate around himself so that you can look at...

View Article

How to Rotate Camera around GameObject (Player)

I am in a pickle. Whilest, transform.position = player.position + offsetX; works, or + offsetY; works, the combination of the two do not! Any Suggestions? using UnityEngine; using System.Collections;...

View Article


Glow around camera's alpha channel?

Hi folks, I'm using 2 cameras to render the foreground and background I want to have a glow around whatever is rendered on the foreground (around its alpha pass), any suggestions?

View Article

stop rotate around c#

Hey guys, I got a little problem. I have an enemy gameobject that I want to rotate around a background gameobject on a specific angle I tried this bit of code using UnityEngine; using...

View Article

Looking to move FPS asset player around a sphere

As above i need to mover a around a sphere without falling off i have searched the forums but nothing seem to work for me can anyone help me out?

View Article


HOW TO I LOOK AROUND

I havn't even started making a game yet and I want to look around in unity, but i can only pan and look around a strange axis. in blender you can hold down middle click and look around. How do I do...

View Article


Move around object

I have problem with Unity - 2D objects. I want to rotate object around circle and on click translate it (with same angle) outside the circle to another and still rotate. Rotating is working with...

View Article

How to implent movement AROUND grid

Hello, Everyone seems to be asking about how to implemnt gridbased movement, where you move form tile to tile. I on the other hand, need to find a way to move on the edges of the grid only (around the...

View Article

How to make an AI that moves around

Hey mates, i already made some AI scripts in the past, but i wanted to take another step. I have made an AI that follow the player based on his coordinates, i made an AI that is always looking at the...

View Article

How to make Objects so as they do not leave an area around another object

Hello, I need to make it so that some objects do not leave a circular area of which the center is another object. So these objects can have random movement until they reach the boundaries of the...

View Article


To send Raycasting to four corners ?

Measure the distance between the mouse click and the box.I am trying to do it using code Vector3.Distance. ![alt text][1] Hi, I click on the object on the grid with the mouse and I want you to show the...

View Article

Rotation around an Object

Hello all , I am having a hard time understanding what this code does : (it was taken from a tutorial but the explication wasn't clear enough to me) I came to a point where I need this code but with a...

View Article


How to Rotate camera around object SMOOTHLY when using Input.GetKeyDown

I've searched on the forum and still cant find how to do this, my problem is that i'm trying to make the camera rotate around the character smoothly with GetKeyDown, but that does not seems to work at...

View Article

Instantiate a cube around the player, with a maximum of distance

Hello, in my game I want to do is that when the player starts, he shows some cubes around him, but well separated, and with a maximum of cubes possible I also want that if the player is walking in a...

View Article


problem with rotate camera around player

i want to make camera rotate around player, but i can't edit the rotation or location, this my script. get touch : public Vector2 touchDist, pointerOld; protected int pointerId; public bool pressed;...

View Article

enemy walking around the room 2d

Hello! I want to make enemy walking around the room in 2d mode: 1) if in front of enemy will be a wall enemy must turn right. 2) if on the left side the wall is finish then enemy must tern left. It's...

View Article

Help, please with rotation input

I have this code, which is work on desktop webGL perfectly, but when I open page with web GL three mobile browser input is not working correctly. when touch screen, my target object is start to move...

View Article
Browsing all 101 articles
Browse latest View live