Use this tag for physically moving systems. For example robots, or electronic or pneumatic actuators.
Questions tagged [motion]
584 questions
1
vote
0 answers
Vector Normalizing not working as intended
I'm having trouble with my game movement. I have either incorrectly used sin and cos to calculate the true X,Y to move the screen (character stays centered) or the calculation takes too long and doesn't refresh fast enough. The below code is…

sychordCoder
- 230
- 3
- 14
1
vote
0 answers
Backward Value Iteration
I was reading LaValle's backward value interation but, completely failed to understand the example 2.9, which is mentioned in the text, works.
Would someone be able to intuitively explain how backward value iteration works?

Kav
- 85
- 1
- 1
- 7
1
vote
0 answers
iOS14 - CMMotionActivityManager startActivityUpdatesToQueue not working
On iOS 14 I call 'startActivityUpdatesToQueue withHandler' from CMMotionActivityManager and my handler block (with CMMotionActivity parameter) is not called at all.
On iOS 12 the same code work correctly.
CMMotionActivityManager…

anri
- 11
- 3
1
vote
2 answers
Ionic + Capacitor: Motion does not work on device
I have a simple Ionic page that should tap into the Motion plugin of Capacitor and show the orientation of the compass the device.
Works fine in the Chrome dev console but not on the device itself - whether accessing the ionic server og via…

Bernhard Snizek
- 37
- 4
1
vote
2 answers
Tkinter: Get mouse coordinates only when mouse button is pressed
I have a rather specific question in Python.
I know the solution for constantly recieving the mouse coordinates on a frame in Tkinter:
import Tkinter as tk
root = tk.Tk()
def motion(event):
x, y = event.x, event.y
print('{}, {}'.format(x,…

Soda
- 89
- 1
- 8
1
vote
0 answers
Modeling satellite's orbit around earth in python?
I've been following along with a tutorial, which models Earth, Venus, and the Sun. The code runs just fine. However, I'm trying to model a satellite's orbit about the earth, where the earth is the center of its "universe" at position (0,0). I'm…

mjake
- 43
- 1
- 5
1
vote
0 answers
How to display an MVIMG (google camera motion photo) in browser?
Google camera makes a so-called 'motion photo', that contains a short, audioless mp4 video clip from before/after taking the photo. This is appended to the JPEG file, its precise location is noted in EXIF tags.
Now I want to show this in my blog.…

Agoston Horvath
- 781
- 8
- 13
1
vote
1 answer
Pygame motion(mechanics) : Why does my player never come back to the ground?
I already did a jumping system which is working, but i have to do one using mecanics.
At the moment my character never come back to the ground.
Here is my code :
def jump(self):
if self.isJumping == False:
self.isJumping = True
…

Robert
- 11
- 1
1
vote
0 answers
Motion detect from voice
Does anyone know a mature AI model either paid or open source which can detect the motions from a recorded voice? There are a few good ones for text but haven't seen acceptable ones for voice yet.

ajack
- 11
- 1
1
vote
0 answers
Material Design Motion animation
I would like to know how the MaterialContainerTransform can be implemented from a FAB to a fragment. I have followed the tutorial provided by Google but without success.
I want to achieve this:
An animation that does exactly that (An animation that…

Alex Rivas
- 161
- 2
- 9
1
vote
1 answer
Arduino - PIR motion sensor code without using delay()
I have an Arduino set up with multiple sensors printing to serial port. Initially, I had the PIR sensor implemented with several delays built in so it would not spam the motion detected message. However, the delay() function, of course, pauses the…

BonnieG
- 25
- 5
1
vote
1 answer
flutter/ how can I make motion detect with camera?
hello now I am making home training app via flutter
I wanna try to use some sensor or camera for detecting people actually move
is there have any article or package to get a clue for this one?
cuz I am not a native English speaker so hard to find…

반어이
- 19
- 3
1
vote
2 answers
Motion Animation in Silverlight?
This is probably a really dumb question, but I'm finding conflicting information. I have a project in WPF/VB.net 2010 that I want to create an alternate version of in Silverlight. However, it uses heavy amounts of animation, especially motion…

CodeMouse92
- 6,840
- 14
- 73
- 130
1
vote
1 answer
How to interpret the math behind detecting a shake event in Android?
I see a lot of answers online and they all have similar copy pasted code but none really have an explanation of the math that they use. I have a URL to the code on tutorialspoint which is the same as the answers I see on stackoverflow. However can…

Belphegor
- 1,683
- 4
- 23
- 44
1
vote
1 answer
How do I attach an object to a rotating object in Flash?
I have a multi-layered animation, comprised of motion tweens at the moment. I would like to attach an object to another so that when it rotates, the attached object will move in an orbit based on the point where it is anchored.
Is this possible…

Tetsuojin
- 13
- 2