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 ArticleIs 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 ArticleRotating 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 ArticleCalculate 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 ArticleRotate 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 ArticleMathf.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 ArticleRotating 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 ArticleDon'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 ArticleBall 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 ArticleRotating 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 ArticleHow 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 ArticleColliding 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 ArticleFall 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 ArticleStar 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 ArticleRotate 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 ArticleRotating 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 ArticleQuickly 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 ArticleDetermine 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 ArticleAutomatically 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 ArticlePreventing 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