How can I make a bow rotate with player sprite where arrow will go?
Hi I am making a 2D archery game but my last problem is rotating bow where arrow release with player. waiting for your asists.
View Articleneed my object to rotate between specific angles on the x axis
so currently I'm trying to make a spotlight for a ship and in the editor, I know that the points that I need are between two vectors ie. vector3(60,-90,-90) and vector3(120,-90,-90) and I'm wanting to...
View ArticleWhat am I doing wrong with shooting at mose position?
Hello. For a few deys straight i cant find a solution for this problem. I want to rotate and then shoot a bullet into mouse position. I tried using planes, camera.mian.screentoworldpoint but that dont...
View ArticleGet only -180 to 180 value
hello! i'm looking for a way to get back only the value from -180 to 180 on my rotate object, because up -180 it will go to -181 and so on... thank's you in advance
View ArticleHow can I rotate an object without moving it up or down?
This is my code there, i have an aircraft, it has a rigidbody component with no gravity(i have some constraints) the movement is good but when i try to rotate it left or right, it's rotating and...
View ArticleRotating a direction vector
I am trying to make a portal component for my game, that will get the velocity of the object passing through and the angle of the portal that it is going to and the one it is passing and calculate the...
View ArticleGamepad and Keyboard camera rotate
I use a script that rotates the camera around the player using Mouse X and Mouse Y Input. But I have two characters, and I want one camera to rotate with the mouse, and the other with the joystick or...
View ArticleJump perpendicular/adjacent to current point on a rotating circle
Hello! So I have a box that becomes a child of a rotating circle on collide and I am adding a fixed joint to the point of collision so that the box will seem to be rotating on the surface of the circle...
View ArticleHow to make something rotate faster and faster
I have an orb in my game and it rotates 25 degrees per second from a script but I want to make so it can attack and I want it to go faster and faster after every second so it "charges" itself how would...
View ArticleTransform.rotate gives different result to rotation in inspector
If I have a character in my 2D game that has its rotation set in the inspector like so: ![alt text][1] If I do this as soon as my scene loads before moving my character: Debug.Log(transform.rotation);...
View ArticleHow to Select objects and move and rotate them on the x,y,z axis.
Hi, I was wondering how I could move objects on the x,y,z axis in my game. Like when you select a object a 3 arrows will appear to show t x,y,z axis same with rotation it but only with rings around it....
View Articlemanaging rotation of Turret on two axis
Hi. i'm a beginner developer. My question is how would I go about doing this? i'v found an script on internet and modified for my purpose. ___ i have a cube(player) with a rectangular cube child(gun)....
View Articlehow to stop the player from shaking? 3d endless runner
am working on a endless runner 3d game and the player seems to shake !! so I notes the problem is that in the rotate the player to where is he going, but I cant figure it out where exactly the mistake...
View ArticleRotate turret faster if hull is rotating the same way
Hello, What i want is pretty easy, I have a tank, so a turret and a hull. Both rotate perfectly fine. But the turret's rotation speed is not calculated depending on the hull's rotation speed. Another...
View ArticleHow can I get my 2D enemy to rotate to look at my player?
This is the code i have so far Vector3 dir = player.position - transform.position; Quaternion lookRotation = Quaternion.LookRotation(dir); Vector3 rotation = lookRotation.eulerAngles; enemy.rotation =...
View ArticleFlipping the position of the gun when rotating player
So I have a roguelike player that can look in 4 directions and I have the gun flippiing when it hits 90 degrees and vice versa, but I want the gun to flip to the other side of the player as if it is...
View ArticleMoving a rotating gameObject along its current angle using mouse (Unity2D)
Hi all, I'm trying to work on a part of my game where an object revolves around another object, depending on where my mouse is. I got that part working 100 percent, but now I've run into a problem with...
View ArticleHow to increase and decrease rotating speed
I have speed data like 10 m/s, 6 m/s, 15 m/s, 20 m/s. I want to rotating speed increase by 10 m/s after time speed 6 m/s something like that variable speed. I already wrote rotating speed script code...
View ArticleRotating a grid,
Hey guys, I made a base building game where you place your buildings on a grid. Now I created an AI that also builds a base and I want it to face the player with it's base. I can't just rotate the...
View Articlehow to rotate the player in 3d mobile game
hello guys i am new in game dev and my problem is i dont no how to rotate the camera in one click like you click one click and after the click the player rotate 90 dgree in the y
View Article