Skip to main content

Questions tagged [transformation]

Transformation in game development is usually refers to linear algebra operations on points, vectors and matrices.

Filter by
Sorted by
Tagged with
0 votes
1 answer
135 views

I understand this is a slightly esoteric question, but its something I've constantly asked myself over and over when using various 3D design tools and game engines. In what way should models be facing,...
Unirally 101's user avatar
3 votes
1 answer
138 views

I am currently working on filling out some tasks for a task board and I realized I have no idea what this thing is called. It's an axis thingy that you can grab to translate and rotate an object. I ...
ygl0989's user avatar
  • 33
1 vote
1 answer
70 views

I am currently implementing gizmos in my engine (or rather continuing the implementation I made a year ago). I had implemented a way to choose whether transformations are applied based on local space ...
ostef's user avatar
  • 21
0 votes
0 answers
121 views

Relevant to this issue are two MonoBehaviour scripts: Actor and Player. ...
Bunabyte's user avatar
  • 331
1 vote
1 answer
108 views

I am currently modding in keyboard and mouse support for a Unity game that only supports controllers. The game is in an isometric style, and as such, the game camera is slightly tilted. The original ...
cyanic's user avatar
  • 121
0 votes
0 answers
65 views

Perspective Euclidean rendering makes use of the W coordinates in a 4-component vector by recording distance information into it and let GPU do the scaling/normalization. Hyperbolic and non-Euclidean ...
DannyNiu's user avatar
  • 113
0 votes
1 answer
161 views

I am learning about the graphics pipeline. My understanding of the view transformation is that you: First create a normalized, separate coordinate system for the camera, based on its position and ...
Jared Kosiba's user avatar
0 votes
0 answers
74 views

I'm coding a VR application that allows the user to point the controller at an object (there's a "laser" the extends from the front of the controller and is used in hit testing) and adjust ...
Runt8's user avatar
  • 101
0 votes
0 answers
38 views

How can I achieve the same object rotation as in this video? I can't figure out how this type of rotation is implemented. Where should I start looking? As far as I understand, after the rotation, the ...
Haslin's user avatar
  • 1
0 votes
1 answer
90 views

Have an basic enemy prefab that when spawned, I would like it to lock to player and move toward them, with smooth rotation. However, as you can see in this video, the enemy initially moves away from ...
Anthony's user avatar
  • 11
2 votes
0 answers
84 views

I have quaternion representing a camera pose in a coordinate space called "World Frame 2": x+ = right y+ = up z+ = out ...and I want to convert it to another space called "World Frame ...
user1148626's user avatar
0 votes
0 answers
48 views

Here is my script for opening animation. It basically sets the localPosition of an object out of the screen and then brings back in smoothly. The problem is I got ...
Said Polat's user avatar
0 votes
2 answers
96 views

Finished this great tutorial on skeletal animation: https://learnopengl.com/Guest-Articles/2020/Skeletal-Animation All works as expected, no issues! Here is what matrixes I use to achieve skeletal ...
Avi's user avatar
  • 188
1 vote
0 answers
72 views

I started working on a small raytracer project, and i decided to reuse my already existing openGL renderer to do this, i'm using GLM to manage transforms/positions. However, i stumbled upon a very ...
Bellaedris's user avatar
1 vote
0 answers
117 views

I have a dataset containing 2D images of telco towers and metadata. Each 2D image has 3x3 rotation matrix which provides orientation info about the drone when it captured the image. Now I have a 3D ...
Moiz Ghuman's user avatar
0 votes
0 answers
435 views

I'm working on a raycast-based vehicle in a 3D world using a physics engine. It's basically a chassis object that contains a transform (translation, rotation, scale), a dynamic rigid body (with mass, ...
Splo's user avatar
  • 736
0 votes
1 answer
162 views

I'm trying to draw a hollow rectangle (i.e. the border of a rectangle without the middle) using a unit square plus normals. The actual positions are being calculated in my vertex shader. For example, ...
junglie85's user avatar
  • 123
0 votes
0 answers
577 views

For my project I am turning my CharacterBody3D 90 degrees on the x-axis towards a wall. To achieve this I set basis.Z to the <...
NEWBIE's user avatar
  • 23
0 votes
1 answer
73 views

While debugging the code that decomposes the world matrix, I found that the decomposed world rotation value is different from the world rotation value stored in Transform. Simply, World Rotation is ...
Tee Mo's user avatar
  • 3
0 votes
1 answer
96 views

I have attached a script (1) to the InputField for ease and it displays HA changing when I alter it during run time in the ...
Stan's user avatar
  • 3
1 vote
0 answers
78 views

I'm following in the footsteps of this blog in implementing a transform hierarchy to my game engine scenes. I have a fairly similar implementation for a 3D transform: ...
Boyfinn's user avatar
  • 111
0 votes
0 answers
131 views

I have been searching around for a solution to this but still haven't been able to use it or find it, the thing is i need the Screen Position of an object that is being seen, for this i have three ...
user57129's user avatar
  • 133
0 votes
1 answer
118 views

I am struggling to understand the relationship between model transformation, model space, and world space. I understand that model transformation transforms an object from model space into world space....
CheeseS's user avatar
1 vote
1 answer
608 views

My initial coordinates of a newly created object without a parent are not 0,0,0 They’re supposed to be at the origin. Instead they are some random number. And how can I set them to zero without moving ...
Mich's user avatar
  • 131
0 votes
1 answer
111 views

Given a single affine transformation in 3D (i.e., TRS transforms) that is represented by a translation vector (t), quaternion (r) and scaling vector (s). Is there some way of efficiently computing the ...
Xaldew's user avatar
  • 105
0 votes
1 answer
174 views

Given two affine transformations in 3D (i.e., TRS transforms) called T0 and T1, each represented by a translation vector (t), quaternion (r) and scaling vector (s). Now, say that I want to compute the ...
Xaldew's user avatar
  • 105
2 votes
1 answer
684 views

From what I can tell Godot uses Projection for 4x4 matrixes, but I see no way to generate a localtoworldmatrix from a given transform in Godot, how do I do this?
Ethan's user avatar
  • 145
0 votes
0 answers
52 views

I'm making a VR game in Unity. I want to select a cylinder with ray interactor and drag it, and as I drag, it should stretch. This is the code I have currently for 2D: ...
SPP's user avatar
  • 1
1 vote
1 answer
241 views

I just started looking into Stride as a replacement for Unity, and I'm trying to rewrite some scripts. My question is: How do you set the world rotation of a transform component? In other words, what ...
ZReeder's user avatar
  • 13
1 vote
1 answer
322 views

In world space, I have an axis (eg. [-1, 0, 0]) and a point (eg.[2,5,1]). I also have a 4x4 viewmatrix. Now I want to transform that axis and point in camera frame. I am getting really confused. Does ...
Anmol Gupta's user avatar
0 votes
2 answers
155 views

In my game, I have one object that rotates around another using transform.RotateAround, and I need to change the radius of its orbit. The behavior now is that the ...
Daniel Lip's user avatar
  • 1,785
0 votes
1 answer
531 views

Typically, conversion methods from world to screen coordinates and vice versa use a camera to perform these calculations, so I'm wondering how does GetWorldCorners ...
Serg's user avatar
  • 393
1 vote
1 answer
157 views

I am looking for a sensible way to continuously move an object downwards with constant speed while moving left or right by some amount x when the user presses the left or right arrow keys. Basically, ...
ChrisC's user avatar
  • 116
3 votes
1 answer
4k views

When scale is modulated, the item scales from the top-left corner. I tried changing anchors preset to "center" but it still scaled from the top-left corner. How do I make it scale from ...
Seph Reed's user avatar
  • 275
1 vote
0 answers
54 views

I'm creating my own flight simulator game from scratch, using Swift and Metal, for learning purposes, and I'm wondering how I can move certain parts of my aircraft model. My model is a free OBJ file ...
Tino's user avatar
  • 11
0 votes
1 answer
268 views

I want to know when to use InverseTransformDirection. Unity documentation says : "Transforms a direction from world space to local space". Honestly, it is not clear for me. I came across ...
Achie1's user avatar
  • 181
1 vote
1 answer
98 views

I'm using this camera script to follow a cube. The cube has rigid body with gravity enabled. There is a plane on which the cube moves. If it goes off the plane, the cube starts falling. However when ...
single arrow games's user avatar
0 votes
0 answers
269 views

I have a card prefab setup to render a card like this: I'm in the process of creating a hand prefab to contain a set of cards and manage the animation to slide in each of the cards. Each hand has 5 ...
Samuel Slade's user avatar
0 votes
1 answer
83 views

Ever played Skate 3? When dropping into a ramp, or if you're midair, your player's up direction aligns to the normal of the surface you're about to land on, while respecting the player's forward ...
AriaMath's user avatar
0 votes
1 answer
1k views

I'm making a puzzle game and can't find ANY solution on how to glue parts so I can move them together as a unit. :( I tried to making them depend like parent and a child, but when I touch the child, ...
Dead Lord's user avatar
0 votes
1 answer
977 views

I am currently trying to check whether the first object contains a second. I first tried to use the bounding box, but it is defined in world space, so it is not working with my rotated cubes. Then I ...
Muhammad Faizan Khan's user avatar
0 votes
1 answer
1k views

For various reasons I am building a very simple graphics engine. I have a pretty good 2D thing using plain SDL2 and C that essentially boils down to a single "putpixel" function. I can ...
MalphasWats's user avatar
0 votes
1 answer
61 views

I'm trying to spawn infinite tiles in a 3D runner game, but the tiles are spawning at the wrong position and on the wrong axis. Technically, the code is working as it should, it is spawning and ...
Aj_Xocan's user avatar
0 votes
1 answer
209 views

I want to have an eyeball that when the player looks at, it disappears by moving to the side. Like in a horror game. I know how to make the object move to a set location but I don't know how I would ...
Dawid's user avatar
  • 3
1 vote
0 answers
43 views

I am making a factory game and for it I need to set the position of a hologram of a machine so that the end of the hologram's conveyor snaps to the end of the machine next to its conveyor when ...
Commander Of The Wind's user avatar
0 votes
0 answers
230 views

I have a background that I'd like to remain in the same position relative to the camera along the y-axis, but scroll in parallax along the x-axis. The x-axis parallax part I was able to implement just ...
Mav's user avatar
  • 99
0 votes
3 answers
274 views

I have grid movement set up for the player within a set space. The player moves one unit at a time and can move several units when holding down a direction key. I would like the player to respawn back ...
Natalia DaLomba's user avatar
0 votes
2 answers
190 views

I'm trying to determine what coordinates are in one space when given a point in another space. For example, I've got a Matrix4x4 that I can use to convert a point in unity's world space to a skewed ...
Hex Crown's user avatar
0 votes
1 answer
264 views

I'm writing a Transform script for a Monogame project and I'm trying for a few days now to fix the Rotate method of this script, but without success. Currently, the Parent transform only rotates ...
NOrlYNcE's user avatar
0 votes
2 answers
1k views

what my problem is: I imported FBX models, when I click those objects from Project tab, I see the values of Transform are different and can't be changed (The Transform values under Imported Object ...
sdo's user avatar
  • 21

1
2 3 4 5
11