Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (757) Games in Android Showcase (229) games submitted by our members Games in WIP (843) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Physics of a melee weapon swing  (Read 2319 times) 0 Members and 1 Guest are viewing this topic.
K.I.L.E.R

Senior Devvie

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.

Thank You.

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

Jeff:
Unemployed.
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

 EgonOlsen (40 views) 2018-06-10 19:43:48 EgonOlsen (21 views) 2018-06-10 19:43:44 EgonOlsen (42 views) 2018-06-10 19:43:20 DesertCoockie (188 views) 2018-05-13 18:23:11 nelsongames (123 views) 2018-04-24 18:15:36 nelsongames (122 views) 2018-04-24 18:14:32 ivj94 (862 views) 2018-03-24 14:47:39 ivj94 (123 views) 2018-03-24 14:46:31 ivj94 (759 views) 2018-03-24 14:43:53 Solater (140 views) 2018-03-17 05:04:08
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-03-02 08:44:05
 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