Questions tagged [axis]
The axis tag has no usage guidance.
45
questions
0
votes
1
answer
359
views
Why do my axis mappings to remap the MoveForward and MoveRight keys not seem to have any effect in-game on Unreal Editor 4.27.2?
Since I have an azerty keyboard instead of a qwerty one I'm trying to remap wasd to zqsd for the in-game playing in Unreal Editor 4.27.2.
I've started a new blank c++ project with starter content. ...
0
votes
1
answer
81
views
Rotation matrix for a model where the forward axis is not +X
I'm trying to convert a normalized unit vector, representing an entity heading, into a rotation matrix for rendering.
The problem is that I'm using an (apparently) unusual forward vector for my ...
0
votes
1
answer
35
views
Place tiles along a specific axis / direction
I want to be able to place tiles only in the direction I've started "drawing" them.
For an example, if I click and hold on tile at position (0,0), and ...
0
votes
0
answers
22
views
Efficient way to compare vectorial direction?
I have a bunch of random vectors representing a direction and four other vectors that we can distinguish with their pyramidal arrows at their extremity, they represent a boundary
what i'd like to do ...
0
votes
0
answers
335
views
Unity: Vertical Input will not return negative values
I am trying to make a 'single stick' shooter, where the character faces the direction they are moving, but I'm struggling to get the movement working correctly; no matter what I've tried, the player ...
0
votes
0
answers
31
views
Unwanted rotations with transform.RotateAround
I didn't tough i would have issues with this, but unfortunatly I did. I have a Character (which is more a pile of cube) with a body, a empty GameObject for each leg attached to the body with a join ...
0
votes
1
answer
1k
views
Unreal MouseWheelAxis negative axis does not work
Would like to avoid using separate action mappings i.e. MouseWheelUp and MouseWheelDown for a system I'm developing.
I noticed <...
0
votes
2
answers
97
views
The camera goes up and down when following a rolling sphere
I have this CameraController script attached to my camera, to follow a sphere that moves using WSAD.
...
3
votes
1
answer
946
views
Unity - X axis back to front
I'm using Unity 2018 and its really confusing me. I generate a plane mesh in code and when it comes to positioning (transform.position.x) it on the X axis I can't understand why moving it further to ...
0
votes
3
answers
75
views
How to Make Snaky Inchworm Motion With Armature Staying Upright
I have a series of connected bones in a straight line. I want to be able to rotate each bone vertically and/or horizontally so that it can slither and arch randomly kinda like a snake mixed with an ...
0
votes
1
answer
2k
views
Can't set object's local rotation like rotating from gizmo in the scene
Here, I have a plane model with some sub parts(like aileron) can rotate:
That red section is weight painted(rigged) vertices, and I need to control the rotation of this in Unity by script.
So this ...
1
vote
0
answers
2k
views
How to make an object which position is not on the world origin rotate around the world orgin in threejs?
I've loaded an object and set its position on vector(5,2,-5) by threejs. And I wanted it to rotate around the origin point in the world coodinate system. I found a method in class Object3D called '...
1
vote
2
answers
155
views
How to clip 3D object in projection (octants)?
In example we've wrote some code in Pascal (graph unit) which rotates 3D object in oblique frontal (dimetric) projection in all octants positioned in center of them.
The projection's type:
The code ...
0
votes
1
answer
719
views
Unity - Inaccurate rotation if object is rotated on two axis at once
I have an object which i want to rotate relative to world space. I have three variables (one for every axis) which store the rotation. By pressing buttons on my controller I add or subtract 90 to ...
0
votes
1
answer
80
views
Restrict the rotation of the camera using button
I've been trying to limit the Y-axis of the camera rotation but I'm out of depth until now. I'd looked up many tutorials and I found the clamping method, but I seem can't get it to work on my code, ...
0
votes
1
answer
17
views
Issues with Toggle
hope you're all good..
I'm struggling with a simple toggle for inverting Y axis..
What i have works for my first scene but i'm trying to keep this setting through all scenes, hence why the script ...
0
votes
1
answer
3k
views
Unity Matrix4x4 to rotate a point around a pivot / axis
I need the Matrix4x4 to rotate around a given axis that does not go through (0,0,0). Is there some built in straightforward way to do this in the Unity libraries, or do I need to build and maintain my ...
3
votes
1
answer
2k
views
Converting Euler rotation angles from Z up to Y up (Max to OpenGL)
I'm working on pulling geometry and it's transformation from a 3DS Max exported FBX (Z-up) to an OpenGL model format (Y-up). The main problem is I intend to keep the transformations as Translation and ...
1
vote
0
answers
36
views
Transform arbitrary axes to world axes
I'm in the case I need to transform a Quaternion coordinate system to a concrete one, let me explain.
I'm implementing an orientation tracker for VR headsets, I have the orientation of the device and ...
8
votes
3
answers
9k
views
Why is OpenGL point (0,0) not in top-left corner of the screen?
Most of computer graphics systems use screen's top-left corner as staring point, but OpenGL uses bottom-to-top direction, why?
4
votes
2
answers
13k
views
Unity / Rotate a point around an arbitrary axis and anchor
I'm trying to find out the point which is already rotated. To solve this I did a Rotation, save the position, set the previous position and return my position, like this:
...
2
votes
1
answer
752
views
Get device rotation in Y axis
So using LibGDX accelerometer methods, I'm able to get the rotation of the device in the X and Z axes in degrees with this code:
...
1
vote
2
answers
2k
views
how to handle the virtual Z axis in 2D games?
I'm using this paper 2d framework of UE4 where a plane mapped with sprite texture is put in 3d world and therefore appears as 2D when viewed from sideways.
Its all good for games like NES mario where ...
0
votes
1
answer
849
views
Getting vector relative to other vector in rotating object
So I have a rotating object a. It is rotating at non-constant speed around it's local x axis. It is parented to object b. When the object a rotates, it's ...
0
votes
1
answer
796
views
Z - Axis value is changing if I move the Game Object in X - Axis in Unity
I am on a small game project . Everything was just fine , but now I have some wired problem . That is Game Object movement . If I move the game object in X - Axis using the gizmo , the value of Z - ...
1
vote
0
answers
297
views
How to find or compute or look for overall/max RPM by simply checking for rotation?
I find it hard to determine the wheel RPM since I'm only making a simple 2D game of rotating object via Z-axis. I wanna try this solution but I got no change since I'm trying to find the RPM from a ...
1
vote
1
answer
289
views
3D Planetary gravity
so i am making a thing in javascript and i want to have planetary gravity in my "universe".
But when i use an equation to calculate the acceleration by gravity i get one number. That is how fast the ...
0
votes
1
answer
1k
views
Gamepad default trigger identification in Windows
I'm currently writing an interface driver for my Moga Power Pro controller on Windows. I'd like to release it for others to use, but first I have some questions on expected default mappings for the ...
1
vote
1
answer
369
views
How to change XNA coordinates directions?
Usually XNA increases X coordinate to right and Y to down. Like this:
But in my project i have 2D map. Drawing tile with bigger Y coodinate below OX looking strange (usually people imagines these ...
1
vote
2
answers
3k
views
Can't set up a PS3 controller in Unity
So I connected a ps3 controller to my computer via USB cable, when I press play I am able to move by using arrows on the left of the ps3 controller and also I am able to shoot and aim by triangle and ...
1
vote
2
answers
1k
views
Unity 3D - Confine a gun rotation within certain degrees
I am having troubles making my gun rotate up and down, and have limits, for example, I want the down limit to be 0 degrees, and the up limit to be 90 degrees.
Currently I can't figure out how to ...
1
vote
1
answer
2k
views
How to modify the Unity sprite renderer (or create a custom one) that can display the sprites on the X-Z plane?
Prefix: I am NOT trying to rotate a sprite 90 degrees by it's transform, this changes what is up/down and forward/backwards for the object. I need the sprite displayed on the X-Z plane in comparison ...
0
votes
1
answer
57
views
Matrix Rotation Only Works On one Axis At A Time
I have this function in my vertex shader. It makes a transformation matix out of a transformation matrix, a rotation and an intensity. It works just fine when setting the rotation of one of the axis (...
1
vote
1
answer
1k
views
How to constrain axis-angle rotation?
I have a problem where I'm performing an axis-angle rotation and am trying to constrain my rotations. Specifically I have a skeleton (model/mesh with rig, transforms are hierarchy parented to pelvis ...
-3
votes
1
answer
819
views
Move the Object in y-axis when the timer increases [closed]
I have a model(.Fbx object),I have placed a timer.When the timer starts increasing the model/object should move down(along y axis).
1
vote
2
answers
654
views
Standard key bindings for movement along three axes?
I understand that the WASD keys are standard for moving a character along two axes (left/right, up/down) because in the QWERTY layout, they are arranged like the arrow keys. I want to make a game ...
1
vote
0
answers
387
views
PhysX - Revolute joint around unit vector
I'm using a right-handed coordinate system with (0,0,-1) = forward, (1,0,0) = right and ...
1
vote
1
answer
457
views
3D model editor manipulators
I'm trying to make my own 3D model editor to better learn 3D programming. I have my translate manipulators and I'm trying to calculate the Vector2 that the mouse would have to move in order to move an ...
1
vote
0
answers
592
views
Separating Axis Theorem Issue
I am trying to create a 2d top down shooter using DirectX 11 (Windows 8 Store) and I am trying to implement OOBB collision using the Separating Axis Theorem.
However I appear to have run into an ...
2
votes
2
answers
5k
views
"Align" a rotation to a direction
Good day all.
I have a 3d object with a random rotation.
I can express that object's rotation both through a quaternion or through an euler rotation.
Then I have a vector3 normal that I get from a ...
0
votes
2
answers
2k
views
How to properly translate a point by a matrix?
I wrote a simple Matrix class and it has methods like rotate, translate, etc. They all seem to be working, but whenever I try to translate a rectangle using the matrix, the translation axis seem to be ...
1
vote
0
answers
1k
views
Move parent according to child axis in Unity?
Can I ask my parent to move according to the child axis? This means if I turn right, then right again, the parent has to be at 180° from its original position, and not only at 90° (because "Right" ...
3
votes
1
answer
651
views
How do I determine a device's default orientation?
I am developing a game with accelerometer controls. This works well on all the mobile phones I've tested it on. However, when testing on a tablet, the y and x axes are reversed, presumably because the ...
8
votes
2
answers
2k
views
How do I convert a 2D movement (from mouse) to a displacement along a 3d axis?
I'm making a small 3D scene editor (that only allow to modify objects positions).
Each object is draw with a 3d X/Y/Z axis :
How it works : user choose an axis (X, Y or Z) by left clicking on it, ...
24
votes
4
answers
18k
views
Why is Y up in many Games?
I learned at school that the z-axis is up. It is the same in modeling software like Blender. However in many games the y-axis is up.
What is the reason?