physics Questions
2
Solved
I'm trying to simulate a simple diffusion based on Fick's 2nd law.
from pylab import *
import numpy as np
gridpoints = 128
def profile(x):
range = 2.
straggle = .1576
dose = 1
return dose/(s...
Roth asked 23/4, 2014 at 15:25
4
Key Points:
I have a default ball trajectory generated using some code(provided below). Lets name this trajectory Initial Trajectory.
Next I have an actual ball whose trajectory I need to estimate...
Vocative asked 23/7 at 8:36
5
Solved
For a while I've been attempting to simulate flowing water with algorithms I've scavenged from "Real-Time Fluid Dynamics for Games". The trouble is I don't seem to get out water-like behavior with ...
Ebonize asked 17/2, 2009 at 9:26
2
Solved
I have a ladder operator â, which satisfies this commutator relation with its own adjoint:
[â, â⁺] = 1
In sympy I have written this code:
import sympy
from sympy import *
from sympy.physics.q...
2
Solved
I am trying to make a game with Unity that uses rockets that are in orbit and can transition to different planets, but I need to predict the rocket path in real-time, depending on the current veloc...
Dicarlo asked 18/9, 2019 at 16:6
3
I want to create a simple physics system in python that works on quaternions in a similar fashion as velocity/position. Its main goal is to simulate one object being dragged and try to catch up to ...
Magneton asked 22/6, 2017 at 0:13
10
I've been out of the modeling biz, so to speak, for a while now. When I was in college, most of the models I worked with were written in FORTRAN, which I never liked. I'm looking to get back ...
Fritzfritze asked 24/9, 2010 at 23:12
4
Solved
Consider the following statement for updating the velocity of a physical object during the integration process in a game:
velocity = velocity * 0.999f + acceleration;
Multiplying the velocity by a...
Ascham asked 27/9, 2020 at 16:16
3
I'm trying to use finite differences to solve the diffusion equation in 3D. I think I'm having problems with the main loop. In particular the discrete equation is:
With Neumann boundary conditions...
4
Solved
I'm using matter.js as a physics engine, and I see that I can detect collisions.
However, I cannot figure out how to tell if two bodies are in contact with one another after a collision occurs. Is...
Indifference asked 4/1, 2018 at 5:46
2
Solved
n_level = range(1, steps + 2)
steps is user input, using multi-index dataframe
df = {'crest': [754, 755, 762, 785], 'trough': [752, 725, 759, 765], 'L1T': [761, 761, 761, 761], 'L2T': [772, 772, ...
Haven asked 6/1, 2022 at 0:55
7
Solved
The apple documentation for UIAcceleration class says,
"When a device is laying still with its back on a horizontal surface, each acceleration event has approximately the following values:
x: ...
Parahydrogen asked 15/2, 2012 at 12:57
2
Solved
I'm researching how to find the inertia for a 2D shape. The contour of this shape is meshed with several points, the x and y coordinate of each point is already known.
I know the expression of Ixx...
Caterina asked 11/1, 2017 at 13:19
2
Solved
Please see this Fiddle: https://jsfiddle.net/sfarbota/wd5aa1wv/2/
I am trying to make the ball bounce inside the circle at the correct angles without losing speed. I think I have the collision det...
Underwood asked 7/2, 2016 at 22:15
3
Solved
I am implementing the Gilbert-Johnson-Keerthi algorithm which computes whether two objects are intersecting (ie. colliding).
The entry point to my code is the hasCollided function which takes two ...
Arlyn asked 17/2, 2014 at 1:10
5
I am tasked with generating evenly (more or less) spaced points on concentric rings of an invisible circle. The function should take a list of radii, and number of points to plot for a given radius...
2
Solved
I know that this will not work, since I tried it:
if $r ~~ BearingTrue || CompassAdj || CourseAdj { nextsame };
But - is there a neat, concise and legible way to do multiple Type smart matches on o...
1
Does anybody know a good example for cable-like (or basically any string or rope) behaviour?
I am currently writing a semi-modular synthesizer. I am using Raphael.js for the cables. But they seem t...
Actinon asked 17/8, 2013 at 17:39
10
Solved
I played around with it for a while, but I simply can't figure it out.
I made a tank that fires missiles, and when the missiles hit the walls, I want them to bounce off, but I want them to bounce ...
1
Solved
I have a 2d pygame water simulation thingy that I followed a tutorial to make. I also found the answer to this question to fix issues with the tutorial: Pygame water physics not working as intended...
3
Solved
I want to simulate Newton's law of universal gravitation using Box2D.
I went through the manual but couldn't find a way to do this.
Basically what I want to do is place several objects in space (...
Incandescence asked 20/7, 2011 at 6:52
2
I am making a program that involves elastic ball physics. I have worked out all of the maths for collision against walls and stationary objects, but I cannot figure out what happens when two moving...
2
Solved
So, I have been trying to implement water physics in pygame based on this tutorial
https://gamedevelopment.tutsplus.com/tutorials/make-a-splash-with-dynamic-2d-water-effects--gamedev-236
The issue ...
Bivens asked 21/6, 2020 at 14:12
1
I'm trying to calculate what angle to hit a pool ball and predict where ball will go to..
I thought target ball should move within a normal direction.. but it moves
on totally different direction
...
Maxillary asked 16/6, 2018 at 9:54
4
Solved
I wrote a short matlab script file that is suppose to run Fresnel's propagation (diffraction), such that given a certain input field U0, it will tell you how the field looks after distance z0. I co...
Pleura asked 7/1, 2014 at 12:42
1 Next >
© 2022 - 2024 — McMap. All rights reserved.