The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
43 views

Rotate camera around point of view

I'm trying to rotate the camera around the view point of the camera. So when the user looks at a build the camera rotate around that building. But the camera does not need to have the building to ...
1
vote
0answers
49 views

Limit rotation angles for Quaternion

I have a short snippet that's rotating the meshes of the wheels as I'm driving forward, but it's also rotating wheels to match the direction I'm turning, and I wish to turn this off completely. ...
0
votes
3answers
105 views

Limit rotation to certain angles for transform.rotate

I'm working on a small project to learn Blender and Unity, and one issue I recently came across is that while I can have the turret of my tank rotate on the z-axis based on mouse movements, I can't ...
0
votes
0answers
38 views

How do I rotate images/sprites I am using with webgl? Is this supported?

I would like to import a few sprites the the screen, in the browser using html/webgl. I already know how to do this. Then, once they are on the screen I would like to manipulate them with the keyboard....
0
votes
0answers
73 views

How to efficiently update AABB on scaling/translating?

AABB says to recalculate the box if rotation change on the base model. So if I scale, or translate the model, I don't need to recalculate. I've calculated the min/max values from local space so far, ...
0
votes
1answer
38 views

Unity Controller to Make Reticle Orbit based on the right stick input

d platformer arena like game. Right now I have it so a reticle moves around the player based on a controller's right stick's horizontal movement using the rotate around function and while it works ...
0
votes
1answer
39 views

Player Controller not working with rotation?

I have created a player character controller. It rotates first time good but not after rotate to its original position before rotation. I am sharing code with you so any one can help me, How can I ...
0
votes
2answers
120 views

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 ...
1
vote
1answer
112 views

why the camera won't rotate around my object?

im new to unity scripting, and now am building upon "Roll a Ball" example in unity training. I wanted to make the camera rotate around the ball in the scene in Y axis, when mouse is moved, and watched ...
-1
votes
1answer
78 views

[opengl]get world position after rotate object by pivot

I need to rotate an object around a pivot,so I use this theory: Translate the object to Pivot position Rotate the object Translate back the object from Pivot position everything works fine,I can ...
0
votes
1answer
100 views

how to naturally rotate a ball according to its velocity on a surface, a wall

I develop a game on cocos2d-x cpp. There is a ball sprite in my game. I move the ball on a surface(wall) via touch events but it can't naturally rotate according to its velocity. if i use ballSprite->...
4
votes
2answers
1k views

How to properly rotate towards a local point in Unity C#? (a local LookAt)

I am having a nightmare trying to make a child object rotate towards a given point of its parent object, similar to what is possible at the world level when using LookAt. The problem is that most ...
1
vote
0answers
40 views

Can I “Pre-rotate” VBOs while loading them in LWJGL?

It is possible to flip VBOs horizontally and vertically by swapping around destination coordinates. Is it possible to rotate an image by any angle, such as 45 degrees, using different destination ...
-1
votes
1answer
62 views

Right-side weapon rotate to face the mouse target

I have a 3D game looking from top to bottom where I move the mouse to aim at targets. I have a simple box (the player) with a sphere on its middle-front (that is the pistol) and a cylinder on its ...
-2
votes
1answer
167 views

how to rotate a sphere around centre (x y z) [duplicate]

I have centre of sphere at x y z. now I want to rotate any point (a b c) on the sphere about centre. how can I do it in c++.
1
vote
2answers
245 views

Rotating a swinging sword in LWJGL gives wierd results

I'm making a 2d top down game in Java using LWJGL(OpenGL, essentially). I recently tried adding a swinging sword mechanism. My coordinate system is set to the bottom left FOR ALL objects. The rotation ...
2
votes
2answers
752 views

Making a cube slowly rotate 180 degress one time on a mouseclick

I am new to C# and new to Unity. I made a script that can turn a cube slowly one time after a mouse click but I feel like its probably wrong for using FixedUpdate. Is this OK or is there a better way? ...
-1
votes
2answers
484 views

Accelerometer bike game rotation help

Hi I've been making a game for the last few months and not sure what to do. It's a 2d bike game and I want the rotation done with accelerometer, at the moment To test on computer I've set the ...
0
votes
1answer
376 views

Rotating an image in Python

So I am making an "Asteroids" like game and I can principally get my sprites image to rotate but when I do, the image gets kinda torn apart. This is the method I am using for rotation. Any help would ...
5
votes
1answer
1k views

Unity Android Orientation Bug in Auto Rotate

I am currently looking for a workaround, or fix, for a Unity bug. I want to be able to auto-rotate my game, while respecting the Android system settings. Currently, if you set your Unity Orientation ...