Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
-2 votes
2 answers
82 views

Image rotation causing misplacement

I've stripped this issue down to an image on a ZStack. The image should be in the lower left corner of the ZStack. When the .rotation for the image is modified, the location changes as if the ...
dkimble's user avatar
  • 67
0 votes
1 answer
45 views

Rotate Pelvis to face the camera UE5.6

I am in the process of making an active ragdoll character in ue5.6. I have gotten the ragdoll walking, grabbing, hanging, jumping, and all sorts of fun stuff. But I am currently stuck on how to make ...
End3r6's user avatar
  • 1
0 votes
1 answer
29 views

How to get face/head direction/rotation from BVH files - Axis Studio?

I'm trying to get the direction/rotation of the head or the direction/rotation of the face from the neck. I'm working whit a BHV file exported from Axis Studio: Body: Axis Studio Euler Order: XYZ ...
Claudio's user avatar
  • 94
1 vote
0 answers
61 views

Euler angles continuity ZYX (Yaw Pitch Roll) when pitch crosses ±90

I’m using a Force Dimension Omega.7. From its 3×3 rotation matrix 𝑅 , I extract ZYX Euler angles (Yaw–Pitch–Roll) as: double yaw= std::atan2(R\[1\]\[0\], R\[0\]\[0\]); // Z double pitch = std::...
frheuwid's user avatar
0 votes
0 answers
61 views

Gyro stabilization tilts sideways on slanted ramps (Unreal C++ custom movement component)

I’m building a custom movement system for my project (kind of a physics-driven movement framework). Everything works great, except for one annoying issue with GYRO STABILIZATION. Video showcase of the ...
AwiXan's user avatar
  • 1
0 votes
2 answers
98 views

Problem with offset when rotating text on an image (Pillow)

main.py from PIL import Image, ImageDraw, ImageFont base_img = Image.new("RGBA", (100, 100), (0, 255, 0)) txt = 'Sample <del color=red>text<del>' rotate = 120 font = ImageFont....
Release24's user avatar
0 votes
2 answers
246 views

How to rotate one vector around another by a certain angle using struct and quaternion in C language?

I am solving this problem- U and K are vectors is R3. U rotated around K by an angle θ in radian produces a new vector V. Find the components of V as functions of U , K and θ. I solved the problem ...
uran42's user avatar
  • 469
3 votes
3 answers
219 views

How to rotate a page by arbitrary angle in pymupdf?

I couldn't find how to rotate a text page of a PDF by an arbitraty angle in the pymupdf documentation. There is page.set_rotation(angle), however, which only allows for 0, 90, 180, 270 degrees, which ...
theozh's user avatar
  • 27k
5 votes
1 answer
147 views

Rotate an image with transparent background

I have trouble rotating images with transparent background while retaining a transparent background. magick::image_rotate() adds a white background with a gray border (I think due to anti-aliasing). ...
Andreas's user avatar
  • 1,220
0 votes
0 answers
53 views

Correct azimuth and GPS-based rotation logic

I'm building an Android app that uses the smartphone's sensors and GPS to rotate a camera (Pivo device) to face a specific GPS coordinate. Azimuth Calculation My phone is in portrait mode, and I want ...
김서진's user avatar
1 vote
1 answer
89 views

Using QuestPDF with a Header having Rotate(-90) the text does not position correctly

I'm using .NET 8, C#, Blazor server, VS 2022 and QuestPDF Version="2025.5.1". I have been unable to get the header cells to provide Rotate(-90) correctly. I am new to QuestPDF. I have ...
John D's user avatar
  • 691
2 votes
3 answers
99 views

How to rotate a 2d circle around another?

I'm trying to rotate a circle around another circle in 2d. I have the following code implemented, which rotates the circle on its axis, however, I want to rotate the circle around the other one. var w ...
Pepwave Dave's user avatar
1 vote
0 answers
23 views

SPH in N-body-simulation with gravity dampens planetary rotation

I implemented a N-body-simulation that combines gravity and SPH (smoothed particle hydrodynamics). With this I can get nice "planets" that warp when they get close and that can collide. But ...
Paul Aner's user avatar
  • 543
0 votes
1 answer
41 views

Variable does not update when used from different script, trying to get an object to aim at where the camera is pointing

The main goal of my code is to make my turret aim at the location that the camera is pointing at, I have used the hit.point information of a raycast function to find the position of where the camera ...
Big Glasses's user avatar
0 votes
1 answer
120 views

Find the correct orientation (eigenvectors) when aligning/registering two point clouds using PCA

I have a point cloud (using the Stanford Bunny). I'm trying to estimate the value of the rotation angle, assuming that my point cloud data (PCD) is centered and the rotation occurs only in the XY ...
Imad El Bouhali's user avatar
0 votes
0 answers
60 views

How to make animals come from sides of screen and go in different direction

This is a top down image of the game. The character can move forward, back, and side to side My problem is getting animals to spawn from both sides, going from left to right and right to left, in C#. ...
righthere's user avatar
0 votes
0 answers
42 views

Fix a layer orientation within a symbol in Illustrator?

I need a symbol in Illustrator, that needs to be rotated differently for each instance. However, a part of it, just one layer, should remain fixed at the same orientation. I know I can achieve it by ...
Aise's user avatar
  • 173
0 votes
0 answers
46 views

Rotate header of swiftui table column

I am trying to rotate the header of a TableColumn. I would also like it not being truncated or cropped. This does not work: TableColumn(Text("Column Name").rotationEffect(Angle(degrees: 45)),...
Marco de Wit's user avatar
  • 2,836
0 votes
0 answers
52 views

Smartphone attitude rotation from reference frame, airplane like

I am working on a mobile application using magnetometer, gyroscope and accelerometer to get information about device attitude as yaw, pitch and roll. I am using Expo which has a DeviceMotion API ...
angelodlfrtr's user avatar
0 votes
1 answer
64 views

how to put camera beside airplane in Unity C#

I would like to position the camera and follow the airplane beside it. The camera is in front of the airplane and not following it. I tried this: public class FollowPlayerX : MonoBehaviour { ...
righthere's user avatar
1 vote
1 answer
79 views

Rotating smoothly in python ursina

I'm currently writing a game and in one of my Entity subclasses, I need it to rotate "smoothly" instead of doing a teleporting esque rotation. Right now I have def smooth_look_at(self, ...
user30081523's user avatar
0 votes
0 answers
26 views

Print rotation angles when rotating with TransformControls in R3F

I’m trying out R3F in React and rotating a capsule model using TransformControls (only on the Z-axis). I want to print the current rotation angle whenever it changes, but only the initial angle gets ...
bibi's user avatar
  • 1
1 vote
0 answers
55 views

Flutter 3D Model Won't Rotate

I recently have a project where I need to display a 3D model, such as an OBJ or GLB file, using Flutter and allow it to move by dynamically modifying its angle in real-time. I tried using flutter_cube ...
Bert's user avatar
  • 11
0 votes
0 answers
37 views

Suggestions on how to fix holes appearing in 2D image rotation shader?

I have a HLSL shader I am using in unity and the idea is to take a 2D image and a depth map of that image, and rotate them based on an euler input. Right now it's rotating exactly how I want it to, ...
Ross Gauld's user avatar
0 votes
1 answer
115 views

DirectX quaternion camera - rolling when changing pitch and yaw

Ok so, I'm currently making my own little engine using DirectX11. I got a lot of things working and decided to go back to my Transform class to make it a bit more polished. I changed my rotation from ...
RenzoDP's user avatar
  • 23
0 votes
1 answer
49 views

Colors Turn Black After Combining Multiple Layer Rotations in SceneKit Rubik’s Cube (Swift), But Not Individually or in Specific Combinations

I’m encountering an issue where the colors of the cubelets turn black after combining multiple layer rotations, but not after individual rotations or the specific combination of left layer rotation + ...
mafa-'s user avatar
  • 15
2 votes
1 answer
68 views

Mathf.Clamp() does not adequately restrict mouselook Y-axis camera rotation at high sensitivities/input values. How can I account for this context?

I am trying to write a method, MouseLookFirstPerson(), to control camera orientation with mouse axis input. From what I can gather, the most common basic way of preventing the camera from inverting ...
Nicole's user avatar
  • 45
0 votes
1 answer
53 views

Object Keeps Rotating with Mouse Even When No Code for Rotation is Active unity

I'm working on a Unity project where I need to rotate an object using either the mouse or the controller. However, I've run into an issue: the object keeps rotating with the mouse even when the left ...
Kaio Barbosa's user avatar
1 vote
2 answers
72 views

java drawString vertically

I am trying to paint in paintComponent strings vertically within a given rectangle, so that the text beginning is at the vertical edge of the rectangle. My idea is to rotate the text around its center....
Alex B.'s user avatar
  • 21
0 votes
1 answer
47 views

Matplotlib polygons: Polygons are skewed after rotation

I am trying to draw an object defined by several vertices and then rotate it by defining a face and a vector that I want that face to be normal to. It works fine if I choose a vector that is parallel ...
dreed75's user avatar
  • 117
-1 votes
1 answer
59 views

I Want to Image rotation in a modal pop up (overflow: auto )with CSS and JQuery , Wnen i Apply some part of image cuts when angle 90 or 270

When image in vertical position watermark (date time) not show properly ](https://i.sstatic.net/LOlcendr.png) Question: I am working on a modal where an image can be rotated by 90 degrees each time ...
Vishal Kumawat 's user avatar
0 votes
1 answer
46 views

How to handle independent camera elevation in Three.js

I have the following code that is run on every frame: const yRotationPerFrame = (scaleSensitivity(leftStick.x) * framePeriod) / 15 const forwardVelocity = scaleSensitivity(...
Pulsares's user avatar
0 votes
0 answers
80 views

Ew resizing rotated rectange in html canvas

I'm trying to resizing a rotated rectangle in html canvas. The direction of resizing is to east, so basically, the rectangle width must grow, while it mantains the height fixed. I achieved to do it in ...
Pedro Ferreira's user avatar
0 votes
0 answers
26 views

Camera jitters when rotating but not moving

My camera rotates whenever I rotate it, I am not sure why, I have tried many solutions including: multiplying by time.deltatime, dividing by time.deltatime, trying all variations of update void, I ...
Big Glasses's user avatar
2 votes
2 answers
105 views

Processing 3D Local Rotation

So I am trying to emulate a robotic arm in Processing, and have most of it working. The problem I'm having is that the last arm segment (excluding the pinchers) needs to rotate along it's own relative ...
clodon2's user avatar
  • 61
0 votes
1 answer
52 views

How to superimpose the rotated subplot on the another sublot?

I would like to release such configuration of plots as it presented on the picture: The next parameters have to be variable: Position of subplot origin point Rotation angle of subplot Size of ...
EGOR_MIPT's user avatar
0 votes
0 answers
37 views

How to rotate a vector in a global frame by yaw/pitch/roll that matches expected motions

For a spacesim, I'm trying to rotate a vector of 1,0,0 (X,Y,Z) by a quaternion in C that will describe motion through space in relation to a global fixed frame (right-handed) of +X=forward, +Y=right, ...
Crispin Bivans's user avatar
0 votes
0 answers
46 views

How to make a rectangle rotate around its own center in a ZStack

I'm working with SwiftUI and I have a rectangle inside a ZStack that I want to rotate. However, the rotation is happening around the center of the entire ZStack, not the center of the rectangle itself....
user29193503's user avatar
0 votes
0 answers
158 views

How do I rotate camera in Ursina engine?

I'm making a simple space simulator, and all I need is to fly around. I managed to make camera move around but I cannot make it rotate correctly along its axes. I couldn't make FirstPersonController ...
Isa's user avatar
  • 1
0 votes
0 answers
157 views

How to calc the correct angle in OpenCV and rotate image based on coordinates?

I'm working on a project and I'm detecting every table in an image via OpenCV. I was able to detect, extract and crop the tables, so I already have the cropped images with all the tables. Now my ...
user29078972's user avatar
0 votes
0 answers
66 views

Having trouble getting the correct position to draw my sprite to when rotating it

I'm having trouble drawing my animation to the correct position. I draw my animation from an atlas, and offset the position of the animation by how many pixels have been trimmed when packing the ...
dodgergram's user avatar
0 votes
1 answer
95 views

Rotate on X axis with GD

I try to generate a JPEG file from a database containing elements positionned in a container with coordinates (x,y), size (w/h), x axis angle and texture image. I have the GD extension installed on ...
Mike G.'s user avatar
  • 63
0 votes
0 answers
58 views

Rotete a Flutter Widget by dragging upper right corner

I'm trying to come up with a Flutter sicker widget that I can rotate, resize and move around. The following code works as expected the first time. However, once the widget is rotated the subsequent ...
jdevp2's user avatar
  • 683
1 vote
0 answers
48 views

Issue with Cropping and Rotating an Image While Maintaining Correct Dimensions

I am implementing a cropping functionality where I work with a downscaled version of the original image. The original image is stored in IndexedDB, and every time I fetch it, it is in its initial ...
Syed Muhammad Taha's user avatar
1 vote
0 answers
76 views

How to rotate / scale around a reference point in flutter/dart?

I have a CustomPaint which I pass a object, derived from CustomPainter. In its paint() method I get a Canvas to which I draw an image. Question: Now I need a rotation with a reference point - so not ...
Charly's user avatar
  • 1,362
-3 votes
2 answers
206 views

Rotation of a cube in a 3d space in unity

i like to rotate a cube on the vertical as well as the horizontal axis. For this I have 4 inputs. Rotate left/right and up/down. The input ranges from -180 to 180 degrees on each axis. I have tried ...
Fabian's user avatar
  • 69
0 votes
0 answers
28 views

How to force left landscape a screen in a framework?

I am working on a Swift framework that requires specific screens to be displayed in a landscape-left orientation, while the rest of the application remains in its default portrait orientation. I tried ...
Ömer faruk Bozbulut's user avatar
0 votes
0 answers
32 views

Is the image rotation function (as seen in Word or PowerPoint) a Group?

I have been thinking of this problem for a while now, but can't seem to figure it out. We are all familiar with adding an image in a PowerPoint file, say for example, a square. We can rotate however ...
user296682's user avatar
1 vote
0 answers
175 views

How do i get my 3D cube to rotate 45 degrees in any direction?

I am working on a 3D game and I want to get my cube(player) to be able to turn 45 degrees in any direction to give my player the ability to be able to turn. I have seen many ways of doing this online ...
Sammy00's user avatar
  • 11
0 votes
1 answer
429 views

React Native Reanimated Rotate an Animated.View on a negative y-axis value

I haven't been able to find any instructions on how to do this. So, currently, I can "flip" an Animated.View using Gesture Handler. It works just like I want except that I want the bottom of ...
jedihomeslice's user avatar

1
2 3 4 5
241