Results 1 to 8 of 8

Thread: Throw an object...

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Throw an object...

    I want to have an object move like it is thrown up into the air and then make a half circle and descend....
    I have worked out the equation:
    y = -x^2+2x+1
    but the object moves in a straight line....what am I missing here???
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    y = -x^2+2x+1
    y = -(x^2-2x)+1
    y = -(x^2-2x+1-1)+1
    y = -(x-1)^2+2

    I don't see a problem... +1 should be the initial height of the object though, and you need the initial x to make it follow the curve better..
    Don't pay attention to this signature, it's contradictory.

  3. #3
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Look in here:

    http://www.vbforums.com/showthread.p...hreadid=221891

    It should have all the answers you need
    Oh and please don't mind the last few posts by me

    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  4. #4
    Hyperactive Member The Dutch Dude's Avatar
    Join Date
    Nov 2001
    Location
    Holland. Land of the Dutch. Home for me.
    Posts
    261
    Me and my likewise named companion here believe that the above named cat will not hover, but will spin around uncontrollably which will result in not only the eventual demise of the cat, but also the creating of a giant gravity well, sucking all universe into oblivion. The universe will then instantly be replaced by something devoud of the prenamed software bug.
    What happens to the toast is still a complete riddle to us. This is since toast are actually multi-dimensional edible foods, and the behavior of such is even beyond modern quantum physical theories.


    Hope this was informational. Bye.
    Obey the dragon thing. Or not. Or possibly just a bit.

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    This is the formulas you need for that thow...especialy the last oneI made for you....Don't thank me...but Newton....

    Attached Images Attached Images  

  6. #6
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by Jotaf98

    What....don't you like newton???

  8. #8
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Yeah everyone loves Newton
    First, the Dutch Dude, his theory is obviously WRONG, mine rocks and you just can't prove otherwise
    Second, Carsten's question has already been answered so that was totally unnecessary (the newtish formulae)
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width