Java-Gaming.org Hi !
 Featured games (83) games approved by the League of Dukes Games in Showcase (542) Games in Android Showcase (133) games submitted by our members Games in WIP (604) 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 1539 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

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.
 CopyableCougar4 (16 views) 2014-12-28 02:10:29 BurntPizza (17 views) 2014-12-27 22:38:51 Mr.CodeIt (13 views) 2014-12-27 04:03:04 TheDudeFromCI (17 views) 2014-12-27 02:14:49 Mr.CodeIt (25 views) 2014-12-23 03:34:11 rwatson462 (56 views) 2014-12-15 09:26:44 Mr.CodeIt (46 views) 2014-12-14 19:50:38 BurntPizza (92 views) 2014-12-09 22:41:13 BurntPizza (113 views) 2014-12-08 04:46:31 JscottyBieshaar (86 views) 2014-12-05 12:39:02
 Rayvolution 50x BurntPizza 30x basil_ 29x HeroesGraveDev 25x LiquidNitrogen 22x appel 18x kpars 18x Riven 16x KevinWorkman 15x princec 14x NegativeZero 13x pitbuller 13x gouessej 13x KudoDEV 12x SHC 11x Ecumene 11x
 How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27Resources for WIP games2014-08-01 16:20:17Resources for WIP games2014-08-01 16:19:50
 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