Skip to main content

Questions tagged [rotation]

A rotation is a circular movement of an object around a center (or point) of rotation. On a mobile device, it indicates the change of orientation.

rotation
0 votes
1 answer
11 views

How is VisionOS RealityKit calculating it's rotation (roll pitch yaw)?

Problem Apple has an object for tracking the wrist such as anchor.originFromAnchorTransform and on this object, there is a rotation field that is protected so I can't access it, but it gets printed if ...
Luke Xu's user avatar
  • 2,392
-2 votes
0 answers
14 views

Point not rotating around centre correctly [duplicate]

When trying to make a vehicle simulation, the hitch point for the trailer needs to be rotated with the tractor, however it does not seem to be working and the hitch point is too far away from the ...
Joshua Hall's user avatar
0 votes
0 answers
31 views

how to change the size of rect that can rotate in canvas with wpf [closed]

I have written a rectangular user control, which contains a large rectangle inside the control. At the four vertices of the rectangle, there are four small rectangles used to control the width and ...
Zerocheng001 Chen's user avatar
0 votes
0 answers
14 views

Image flip when applying quaternion ways of rotation

Recently, I wrote some code using quaternion to avoid gimbal lock when applying roll modification to a certain rotation represented by Euler angles in "ZXY" order and intrinsic ways. The ...
Paul's user avatar
  • 49
1 vote
1 answer
21 views

I am having a hard time getting an object to rotate and move in the object's new forward direction

Why is my player still moving forward(north) in world coordinates? I want the player to face and move in a new direction. Please explain in simple terms. void PlayerMover() { _step = _speed * ...
eyetengu's user avatar
0 votes
0 answers
23 views

Next auth refresh token rotation: the refresh token gets expired when changing tabs in a NextAuth.js application

Next auth refresh token rotation:the refresh token gets expired when changing tabs in a NextAuth.js application.This is[...nextauth] auth - options.ts Any idea about the issue? **What could be the ...
R Desilva's user avatar
1 vote
5 answers
78 views

In C#, I'm trying to iterate strings in single loop, how?

I'm trying to achieve this output: LOWEST LOW MEDIUM HIGH HIGHEST HIGHEST HIGH MEDIUM LOW LOWEST I know there are many ways to do it, but I'm trying it in single loop, is it achievable? My code is ...
Norvz's user avatar
  • 27
0 votes
0 answers
27 views

Unable to map rotations of an ellipse onto a different point

I wrote a program that creates an ellipse made of a series of points that can be rotated by an angle, psi, in the xy plane. I am using a rotation matrix to rotate the ellipse. angle = linspace(0, ...
David Merges's user avatar
3 votes
2 answers
100 views

How to create a draggable and rotatable box in Jetpack Compose?

I'm working on a Jetpack Compose application and I want to create a Box that can be both dragged and rotated using mouse interactions. I should be able to click and drag the entire Box to move it ...
Abdo21's user avatar
  • 607
1 vote
1 answer
44 views

Function to rotate a quaternion by the given amount

class quaternion: __slots__ = ("x", "y", "z", "w") def __init__(self, x: float, y: float, z: float, w: float): self.x = x self.y = y ...
MirceaKitsune's user avatar
0 votes
0 answers
30 views

Conversion between euler and quaternion rotation produces incorrect results when using multiple angles

I'm trying to apply a previous answer to my code, I double-checked it on multiple sites where others came up with the same algorithm independently, but no matter which version I use I can't get the ...
MirceaKitsune's user avatar
0 votes
0 answers
87 views

How do I rotate or translate an object at the mouse position in a vtk environment?

I would like to rotate or translate an object that look like a cylinder by pressing the left button of the mouse on it. to rotate, i would like to click on the tip and make it rotate around the other ...
ymmx's user avatar
  • 4,830
1 vote
2 answers
83 views

Rotating a vector field in an efficient way in python

I need to rotate a 3D vector field by 90 degrees. I do that by first using the NumPy function rot90 (see the docs here). Then I rotate each component at each position in a very inefficient way: using ...
Alf's user avatar
  • 1,929
3 votes
1 answer
164 views

How do you represent quaternion rotations in 2 dimensions?

I'm developing in Android Studio Java with two Bluetooth IMUs that give quaternions. The sensors are oriented in the following way to start: In the image shown, this is considered the “zero” position....
Joey Wagner's user avatar
1 vote
1 answer
43 views

Getting Smooth Response between Horizontal Snapping

I currently implemented so that my Character leans in the direction he is walking on Horizontal Layer. So if he presses 'D' he leans to the right and 'A' he leans to the left. I got that working, but: ...
archivenine's user avatar

15 30 50 per page
1
2 3 4 5
806