Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Game Mechanics / Re: Physics of a melee weapon swing on: 2004-01-27 00: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.
2  Game Development / Game Mechanics / Re: ODE Physics for Java on: 2003-09-29 01:28:43
This project sounds great. I will definitely be giving it a look.

I tried a while ago to use odeforjava and found that it only compiled for linux. (this may have changed of course) I did my best with the make files, but I certainly no expert in that area. I am sure a make expert would have been able to make it go.

3  Game Development / Performance Tuning / Re: Timing on: 2003-07-10 23:53:37
The timers in windows based systems are not accurate and other background processes will cause inaccuracies.

My experience of this is in profiling my Prolog program. (using SCI Prolog FYI)The docs say that you will never get super accurate results because windows does NOT count actual CPU cycles devoted to a process. So the timings a estimates at best. (Making sure all your background processes are switched off will help)
Linux, of course, will return very accurate results.
This explains why Jeff is getting good results, you wont/can't on your windows systems.

This is very frustrating in my case because I will be using profiling to estimate execution times on a 600 machine cluster that has a mixture of XP and Linux boxes. Bugger.  Smiley
4  Game Development / Game Mechanics / Re: Basic Physics Engine on: 2003-07-07 02:52:59
BTW anyone tried building the project on a windows system? I managed to build the ODE C code fine after having to edit source code to make it work with VS.net, but the javaforode stuff is not compiling.

I can get the .java files to compile into the bin directory, but the "make jni" stuff is failing - obviously since it was written for linux/unix.

Anyone have any ideas?

PS: Make is suppose to make compiling easier?? My god what a horrendous mess of a a setup. Its almost as if the designers WANTED it to be a mess...
5  Game Development / Game Mechanics / Re: Basic Physics Engine on: 2003-07-07 01:02:46
Actually they just finished unintegrating it from Java3D so that it is framework independant.  Smiley

Since the future of 3D in Java is unsure, probably the best way to go....
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (119 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (125 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (178 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.1 seconds with 21 queries.