Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (511)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Physics of a melee weapon swing  (Read 1495 times)
0 Members and 1 Guest are viewing this topic.
Offline K.I.L.E.R

Senior Duke




Java games rock!


« Posted 2004-01-25 11:10:21 »

Okay, I need to understand how the physics of this will work.

If the sword is too heavy, the speed you stab with is going to be slower and the attack less effective.

I lunge forward to stab using a knife:
sumFORCE = mass * acceleration-downFORCE(9.8*mass)?

I swing the sword over my head:
Break up the components into 2 vectors, down and forward?

Force of gravity acting upon the object will increase it's effectiveness for damage depending on it's mass.

Centripital acceleration is involved?

I swing the sword with my right hand from my left side:
2 component vector, forward and side towards my right.

The gravitational force acting downwards upon the sword will decrease it's effectiveness depending on the swords mass. A mass of 500Kg will be very heavy and thus slow to swing unless you are incredibly strong.

Can someone please help me with these concepts?

Thank You.

Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Offline Ruru

Junior Newbie




Love the world, but use protection....


« Reply #1 - Posted 2004-01-26 23:32:22 »

Without modelling various muscle groups and so forth, this is going to be largely an exercise in gross approximation. I would just find an equation that appears to look nice and stick with it. (e.g. speed of blade = a.(strength - k.(weight))    )

The main problem I see with this is that there are many muscle groups in each motion, all of which act on the forces in the blade in different ways to each other. (as a martial artist I can tell you that this also includes abdominal and leg muscles)
Thus shoulder muscles would be using most of their force to counteract the gravitational force, while the back muscles will be almost exclusively pulling the sword sideways. (assuming a man in normal stance, if he is on an angle or something, stuff changes)

I think the idea here should be KISS. Spend your time on things the user will actually notice...

As an example of what I mean...

Basic speed calculation...

Basic Speed  BS = a.strength - b.weight
Upward Swing = BS - c.weight
Downward Swing = BS + d.weight
Thrust = BS
Sideways = BS

a,b,c etc = costants. may be replaced with more complex formula to get exponential curves etc if need be.

--
More than likely I have offended you with the above post. Don't feel bad, we are often upset by things we are too damned stupid to understand.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (50 views)
2014-10-17 03:59:02

Norakomi (40 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (36 views)
2014-10-15 16:18:58

TehJavaDev (67 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (58 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (44 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!