473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

American Football/Rugby Ball

Hey Guys,

I'm trying to create a java script demo that simulates a rugby ball.
If your unfamiliar its exactly the same as an American football, but
without the laces. Firstly do you think this is possible? It's easy
enough to get a spherical ball working properly, but due to the
obscure shape I've been strugglering to work out a formula.

Any suggestions, or is this just a bit to far fetched for java script?

Cheers
Sam

p.s I want to use java script becuase i'm planning on using it in a
VRML world i'm working on
Jul 23 '05 #1
1 1713
Sam Davies wrote:
Hey Guys,

I'm trying to create a java script demo that simulates a rugby ball.
If your unfamiliar its exactly the same as an American football, but
without the laces. Firstly do you think this is possible? It's easy
enough to get a spherical ball working properly, but due to the
obscure shape I've been strugglering to work out a formula.

Any suggestions, or is this just a bit to far fetched for java script?

Cheers
Sam

p.s I want to use java script becuase i'm planning on using it in a
VRML world i'm working on


How do you want to simulate it? I dont necessarially think it is out of
the scope of Javascript, but I do not think this is a Javascript question.

What do you want to simulate? Do you want to simulate the physics of a
rugby ball being thrown, bownced, catched? If so, this is not a trivial
problem so solve. It is not even easy with a spherical ball, because in
both cases, you have position in three axis, velocity in three axis, and
accelleration in three axis to get the proper velocity. When it comes
to bouncing on the ground, you have friction to deal with as well. Of
course, using the shape of a rugby ball will make it even more complex.

We're talking major vector mathematics here.

If you are talking about simply mapping out the coordinates for the 3D
shape, it will be easier. You need to know the mathematical formula for
the curve of the ball, (something like a partial elipse), and you can
plot it. You might need to get some math libraries that support more
than your simple trig functions. You might need calculus.

Look at the Math library for Javascript, to know what tools you have.
They are similar to the standard C math libraries. You have your basic
trig functions, but anything more complicated, you will have to derrive
functions for.

If I am totally off base here, it is only because I do not know what you
mean by "simulate". That word can mean many things.

Brian

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: binger | last post by:
Okay, Superbowl is only a few days away, but I thought it would be cool to set up an online registration for a football squares pool. My thoughts are to have people go into anywhere on the 10x10...
0
by: BrainKr | last post by:
Still have 4 openings in our CBS SportsLine.com Fantasy Football league. Champ wins $200 prize. If interested, go to: http://football.sportsline.com/splash/football Register for the GOLD...
9
by: Simon Harvey | last post by:
Hi all, I'm having a bit of a problem working with dates. My computer is british, but I'm developing an american application so I therefore need to use american dates. But I can't get my...
4
by: Terry | last post by:
I have a form that my wife uses to update her tennis racket website. I modified it to allow data entry, modify, and delete. If you enter an id number you get the matching record if there is one. ...
7
by: jakeruston | last post by:
Hello, I was just wondering, would doing a Football Management game in PHP be sensible? The football management game scripts would need to: 1. Generate match reports at a given time and upload...
4
by: stj911 | last post by:
http://counterpunch.org/rahni04072007.html Test Tube Zealots: The American Chemical Society Terminates the Membership of Chemists from Iran By DAVID N. RAHNI The American Chemical Society...
4
by: jocknerd | last post by:
About 10 years ago, I wrote a C app that would read scores from football games and calculate rankings based on the outcome of the games. In fact, I still use this app. You can view my rankings at...
1
by: naik | last post by:
hello friends!... i want to know bout some functions of computer graphics trough c.and now i'm going to make one appl. called football i want to make football ground and gives spacial...
2
by: steve.falzon | last post by:
Hi Folks The new footy season is almost with us, in England anyway :) I've just created a public league on the Times **FREE** fantasy football league game so if anyone wants to join up please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.