Quantcast
Channel: Questions in topic: "rotating"
Browsing all 173 articles
Browse latest View live

Rotate transform.forward at local x axis

Hey Guys, I'm trying to get the forward of my camera. My problem: the transform.forward of my player is not the current view direction. I have a capsule as player and and I'm rotating only the camera...

View Article


Is 360° the same as 0°?

I have an object that I want to rotate around a parent object. So it would be something like this (see picture). http://prntscr.com/5pz2kd So I'll need to rotate the parent in order for the object to...

View Article


Rotating object with RayCast, rough terrain. RTS

Hey guys! Im having some issues with the rotating part of my objects. Its moving fine through terrian without rotation, but not with. What happens is that the object starts jump around and shaking when...

View Article

Calculate Vector3 for rotation or just change pivot;

So my problem is with defining Vector3. Im using iTween.RotateBy and i need to set a Vector3 to rotate always in directions that i marked on printscreen and always by 90 degrees. Hope PrtScr is showing...

View Article

Rotate around fixed axis

Hello everyone, this is my first question here and I really hope there was no one before me asking that question. At least I haven't found that question. And as some additional information: I'm a total...

View Article


Mathf.Clamp having weird effects on player object with rigidbody

Had a fairly simple little script that simply used Input.GetAxis horizontal to move my player object left and right. All was good until I decided I needed to put a limit on the amount of movement along...

View Article

Rotating does not working correctly

Hello Unity users! I have a problem. I created a script for a Cube, which is rotating the Cube over time to left/right/forward/backward (by pressing A/D/W/S). But it's really buggy. I am pretty sure...

View Article

Don't understand how i can rotate camera around player

I am trying to add another script to the player in the shooter survival tutorial so that when i hold down the middle mouse button it allows me to rotate the camera by dragging it This is my current...

View Article


Ball moving only diagonal

Hello Everyone well i'm currently developing a "roll a ball" game and I finally managed to make my camera work perfectly but i have a problem with my ball because when i move it, it only moves in...

View Article


Rotating Platform Collision Issue

Hello, I'm making a game where the player have to rotate a platform (formed by two separated meshes) with the mouse to catch falling balls and make them go through it (like a rotating labyrinth). The...

View Article

How to retain position on kinematic rigidbody rotating surface in Unity 5?...

The new restrictions on rigidbodies requiring a mesh collider to be convex means I can no longer use a physics controlled RB for my gear, the problem is the only way I have ever been able to maintain a...

View Article

Colliding spheres in a Big sphere

I am complete newbie to unity. I want to make many sphere to keep rotating inside a bigger sphere. It is something like molecules inside a gas. I tried coding it but i have no idea how to approach it.....

View Article

Fall Off Rotating Block 2D

Through code, I need the player to be able to slide off the rotating node (or a rotating platform). Right now, the player just sits there. Is there a simple way to do this? (Would RotateAround work?)...

View Article


Star Skybox and rotating camera

Hi, I'm trying to use a star skybox and a rotating camera, but when the camera starts rotating, the smallest stars start to flicker really fast and it gets very annoying. Why does this happen and how...

View Article

Rotate camera around moving object

Hi so I started today with Unity and I have some big progress. however I have struggle to make rotation about moving object and follow it at the same time. My code so far: function Start () { } var...

View Article


Rotating Door

Hi, I have a problem: when I create a door with Blender3D and import this on Unity 5, I create an animator for that, then I do a simple animation where the door rotates to 90 degrees. So I have three...

View Article

Quickly rotating game map causes motion sickness

The player uses a fast moving vehicle that can make really fast tight turns. We have the camera third person. Close to top down perspective. The player is always at center of view. The map rotates when...

View Article


Determine which of two rotation options is less rotation

Using the below picture as an example, assume this object will need to pick if it should rotate to the left or right depending on which rotation will take less time (less rotation). * The dotted line...

View Article

Automatically flip a player game object upright on z axis?

So I've been working on a flight sim using arcade physics. I'd like to have the player roll on the z-axis back to 0 if the player flips upside down. The ship currently stays upright when it turns using...

View Article

Preventing the first person controller from rotating

Hi Unity Community I am trying to prevent the First Person character from rotating via mouse click however I cannot seem to access the appropriate field; how is this supposed to be achieved? I’m...

View Article
Browsing all 173 articles
Browse latest View live


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