Non-instantaneous model of applied force?

Click For Summary
SUMMARY

The discussion focuses on modeling applied force in physics simulations using keyboard input. The user proposes two methods: sinusoidal targeting of velocity and damping force, ultimately leaning towards damping as a more efficient approach. The formula for damping force is suggested as F = -cV, where 'c' is a damping coefficient and 'V' is velocity. The user concludes that implementing a linear force increase over time can create smooth transitions in force application.

PREREQUISITES
  • Basic understanding of physics concepts, particularly force and velocity
  • Familiarity with programming concepts related to input handling
  • Knowledge of damping force and its mathematical representation
  • Experience with creating simulations or game physics
NEXT STEPS
  • Research the implementation of damping force in physics simulations
  • Explore sinusoidal functions and their applications in motion modeling
  • Learn about linear interpolation techniques for smooth transitions
  • Investigate keyboard input handling in programming languages like Python or C++
USEFUL FOR

Game developers, physics simulation programmers, and anyone interested in creating realistic force interactions in computer models.

Aaorris
Messages
2
Reaction score
0
Hey everyone! I'm a recent high school graduate, and I've been trying to model some simple physics with computer code. What's on my mind right now is modeling applied force using keyboard input. The computer knows if a key is down, or not. Applying force based on that input would mean that your applied force is instantaneous! To remedy this, I imagine 2 solutions:
  1. Sin targeting of velocity
  2. Damping force
modeled below is an idea for sin targeting, but damping seems a more usual, less computer intensive method... I just have to think about modeling damping force more...

[thinking out loud]
for damping, F = -cV ?
delta_a = -cV
maybe I've just been thinking too hard. What do you guys think?
[PLAIN]http://popoa.webs.com/appliedForce.jpg
 
Last edited by a moderator:
Physics news on Phys.org
I can't see your picture from here at work, so I have to ask that you be a little more specific with what you are asking. Are you asking how to program a "ramp up" time where the force gradually increases in your program after you press the key? I'm not a programmer at all so I apologize if my terminology isn't correct.
 
Yes, imagine yourself pushing on a wall - you cannot instantly apply all of your force at once, and you also cannot pull away instantly. I just wanted insight into how to model that.

I believe I'll just half-skip this situation by having a linear force increase over a certain amount of time, until the force desired is reached to create smooth force transitions
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K