Quantcast
Channel: Questions in topic: "around"
Browsing latest articles
Browse All 101 View Live

How To Make An NPC Move When You Look At It

Hello all, I've searched but can't find exactly what I'm looking for, let me be more specific. I have a hospital environment that has several turns/corners the player must walk around. I also have a...

View Article



Make a character rotate around a point.

Hi I want to create a game where the character is placed in one specific point and only can rotate around it and shoot (something like bubble shooter games) I tryed with joints and...

View Article

How do I make the nose/whole of my spaceship move?

Firstly, I don't mean having it move forward. I mean if you go up, the nose of the ship will go up, go left, and the nose of the ship goes left. At the moment, my ship is just stationary on the screen...

View Article

2D game turning

How can I make my character turn around to left and right when I press "a" and "d"

View Article

Instantiate enemies around player

Hey everyone! First post, pretty new to Unity... I've had plenty of experience coding in Flash (AS3) and i know it's pretty similar to Javascript so i'm doin my best to my move skills from one to the...

View Article


Rotate game object around a arbitrary line ( not through origin)

I have a gameobject that needs to rotate around an arbitrary line that does not go through the origin. Any help is greatly appreciated it. Cheers.

View Article

I want to rotate object away or towards camera around x-axis

Hi Unity people and consumers. Currently working on an controller that can grab stuff and manipulate it. I currently have gotten stuck due to a problem with my rotation function. I want it to be able...

View Article

How do i make it so particles go in circle?

For exapmple i want to make a bunch of butterflies circling around the flower, so what must i do? I tried to play with the Velocity over Lifetime but the best i can is to make them go back and forth...

View Article


Placing an object around character in 3d space?

Hi! Im trying to make a shield that can be placed around the player, in the player desired position, in the 3d world, in order to block some shots... I was thinking on making a prefb, and instantiating...

View Article


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



How i can set Start Position and Ending position in ROTATION AROUND AXIS?

Hi guys, I'm new one in Unity and I learning #C, Can i ask how i can set rotation around axis - Inicialize start point (where i take the part i moving) and End point of this rotation in some degress?...

View Article
Browsing latest articles
Browse All 101 View Live




Latest Images