Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programming challenge, gravity
Message
De
30/06/2004 12:44:09
 
 
À
30/06/2004 12:07:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00916106
Message ID:
00919154
Vues:
37
>Has any attempted the challenge yet?

Hello Mike.

I have been following this thread with great interest. those things just fascinate me. However, i am afraid i am not going to be of much help here, as my higher math is worth crap <bg>. but i might have some ideas worth looking at.

if i would approach this problem, i think i would start like this:

1st) as we are talking about objects, comes to mind OOP <s>. therefore what i would do, create 1 object with all the different needed properties (like mass, size, etc, etc). those properties would also include numbers provided by other objects in the system (maybe array type).

2nd) add functions to this object to calculate acceleration, pull, direction, etc, etc based on the properties given and to update other objects in the system with data which will have an impact on them.

3rd) subclass this object for each object in the system.

4th) make separate mtdll's out of those objects, so that each object can continuously, independently function, and provide the other objects with data.

5th) create a ‘master class with functions which can make calculations and comparisons base on the actual position, speed, acceleration, etc. of each object. You then have a more realistical representation rather then a theoretical/mathematical representation.

I don’t know if that makes any sense to you or if my line of thinking is messed up here, but I guess this would be pretty close to the way things work in real life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform