python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to use LookRotation to rotate an object based on hand positions?
I'm creating an interaction system for a VR game and I'm struggling with two hand interactions. I'm using the Quaternion.LookRotation() method to generate the rotation of the grabbed object based on t...
Wojtek Wencel
Votes: 0
Answers: 1
how do I rotate a direction Vector3 upwards by an angle in unity
this is my direction vector:
new Vector3(
target.transform.position.x - projectile.position.x,
0,
target.transform.position.z - projectile.position.z
).normalized
I tried multiplying it b...
aadnnn1
Votes: 0
Answers: 1
Why is my camera rotating in Z axis when it should be X and Y? Unity
So I'm creating a tower defence game and I want to make the camera rotate left and right, up and down around the map by dragging right click (I want it to be like the "real chess 3D" app on ...
cutaepie
Votes: 0
Answers: 0
Decompose a GLSL mat4 to original RTS values within vertex shader to calculate a View UV Offset
I need to get the rotation differences between the model and the camera, convert the values to radians/degrees, and pass it to the fragment shader.
For that I need to decompose and the Model rotation ...
Sadern Alwis
Votes: 0
Answers: 1