Questions tagged [physics]
15 questions
17
votes
4 answers
How to visualize the design of a physics engine?
I'm making a physics engine and its becoming quite hard to keep track of the whole thing. Often when I get back to my code after a break I just don't remember why that's not working. Most of the issues aren't simple programming mistakes but design…

Winter
- 705
- 8
- 24
17
votes
12 answers
Teaching myself, as a physicist, to become a better programmer
I've always liked physics, and I've always liked coding, so when I got the offer for a PhD position doing numerical physics (details are not relevant, it's mostly parallel programming for a cluster) at a university, it was a no-brainer for…

user787267
- 311
- 2
- 4
13
votes
2 answers
Is video game programming usually physics related?
I know this is obviously not true for some games, minesweeper, card games, etc. But what about any game involving simulating the real world environment. Obviously these games have some form of a physics engineer powering the graphics.
For someone…

Chris
- 5,663
- 3
- 28
- 39
13
votes
5 answers
Idea for a physics–computer science joint curriculum and textbook
I want to write (and have starting outlining) a physics textbook which assumes its reader is a competent computer programmer. Normal physics textbooks teach physical formulas and give problems that are solved with pen, paper and calculator. I want…

Ami
- 2,055
- 1
- 16
- 20
9
votes
2 answers
Will quantum computers be able to easily crack passwords?
I've recently read a number of (layman's) articles on quantum mechanics and quantum computing, and keep seeing examples along the lines of "Quantum computing can crack passwords quickly by trying all combinations at once". The example goes on to…

JohnLBevan
- 425
- 2
- 4
- 13
6
votes
4 answers
confusion between these two networking terms: transmission rate vs. propagation speed
I read this in TCP/IP PROTOCOL SUITE second edition, written by Behrouz A. Forouzan and Sophia Chung Fegan.
In traditional Ethernet, the minimum frame length is 520 bits, the transmission rate is 10 Mbps, the propagation speed is almost the speed…

Tracy
- 163
- 1
- 1
- 5
4
votes
1 answer
How to define the motion path of one object on a surface of the other one?
I have an uncommon problem. There are 2 3D objects, which are represented by arrays of vertices and triangles (.stl files). Each of them contains a big enough amount of vertices: 1-10 mln ones. The surfaces of these models are rough, and can contain…

Eugene
- 169
- 4
3
votes
0 answers
How would I identify a gap in a set of curve data, and get its value?
I have a set of 2-D data (x,y) and it produces a set of curves,
and sometimes the set of curves do not overlap, and there is a
distinct separation between the groups of curves, how would I
identify and get this separation?
Here is some sample…

user22866
- 139
- 2
2
votes
1 answer
Should gravity sources pull objects or objects pull themselves to gravity?
I'm doing a project in unity where I turn off the general gravity and implement it myself. What I'm trying to acheive is to have GameObjects be affected by several gravity sources on every tick. I got to a dilemma where I'm not sure where the…

asaf92
- 201
- 1
- 7
1
vote
1 answer
Help me understand this "mindmap / constellation" visual pattern
Please help me identify and understand this visual pattern, what's the common name used for such mindmap / constellation visualisations?
http://asterisq.com/products/constellation/roamer/demo
http://apps.asterisq.com/mentionmap/#user-scobleizer
I am…

daniel.sedlacek
- 902
- 1
- 10
- 20
1
vote
1 answer
System for deducting velocity against sources pf gravity
Say I have a particle-based physics engine (which I do) that uses lots of particles with a x and y coordinate and velocity. These particles can also have a mass, which means that these particles (with a large enough mass) can attract each other…

Ben Hollier
- 115
- 4
0
votes
1 answer
Changing coordinate systems in python
I am working on a visual python program that is meant to model the orbit of an electron around the core of a Hydrogen atom. In order to avoid the singularity at r = 0 in the equation for coulomb force, I am modelling this scenario in semi-parabolic…

Lann625
- 3
- 2
0
votes
1 answer
Convert x and y velocity to x and y velocity relative to another point
The question I asked probably isn't very clear, so I'll explain. If I have an x and y velocity, where the y goes towards the bottom of the screen, and the x goes towards the right of the screen, how would I convert the x and y velocity so that the y…

Ben Hollier
- 115
- 4
-2
votes
1 answer
Physics Engine with Fixed-Point Positions
Fixed-point object locations allow for worlds which are much more scale-able. Using a 64-bit integer (per dimension), and 0.1 millimeter precision, a world can be created which is 100% numerically stable, and 12,000 astronomical units across.
I have…

Kent
- 119
- 6
-3
votes
1 answer
I loved developing a 2D game(C++ SDL), but i am not good at maths/physics
I developed 2 games in C++ using SDL. Without using any wrappers. I literally loved and enjoyed every part of the journey. Complex algorithms, how 2D works, rendering, audio, input etc. But i am not too good at maths and specially physics.
PS:…