The directional facing of an entity in the game space.

learn more… | top users | synonyms

2
votes
3answers
43 views

How can I reorient the axes of an object?

I spent some time in Unity yesterday trying to fire a sphere from a horizontal cylinder (like a ball from a cannon). I was using Vector3.forward, but the sphere kept coming out the top of the cylinder ...
0
votes
1answer
68 views

Relative Position/Rotation calculation

I have 2 objects each with a 3x3 Matrix (Orientation) and a Vector3 (Translation). Both are relative to world coordinates. How do I calculate the position and orientation of object B in relation to ...
0
votes
0answers
46 views

How do I fix my planet-facing camera?

Summary I'm having trouble implementing a camera controller suitable for first person use around a planet. The camera needs to be oriented correctly according to gravity (vector from camera ...
-1
votes
0answers
26 views

Shake Device on Orientation Change

I am developing 2d game with landscape and portrait orientation support. I write following code for this purpose. public class DeviceOrientationController : MonoBehaviour { private bool isLandscape; ...