Quantcast
Channel: Questions in topic: "around"
Browsing all 101 articles
Browse latest View live
↧

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


Smaller object jumps around bigger when dragged by mouse cursor

Hello dear all users, I have a problem with moving object with mouse cursor. private Ray eyeRay; private RayCastHit hit; public void Update(){ if(allowMouseMoveUnit){ eyeRay =...

View Article

Weird charging bug. What is causing it? (I think it's easy, and I'm stupid)

So, I'm totally new to this Unity thing, and I'm trying it out for myself without too many tutorials. My code is probably really stupid. But I can't figure out what is causing this weird bug. When I...

View Article

Get rotation around (forward) axis ?

How can I read the rotation of a transform/quaternion around a specific axis? edit: optimal would be to have a direction vector AND an angle! Thanks

View Article
Browsing all 101 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>