Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8100565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:45:52+00:00 2026-06-05T22:45:52+00:00

My apologies if you think this question is supposed to be on the Math

  • 0

My apologies if you think this question is supposed to be on the Math exchange, they scare me a bit and their answers usually don’t make any sense to me.

Right, I’m trying to get very basic physics in Javascript. I have a vector(direction and magnitude) and I need to modify both direction and magnitude because… well… gravity. I do know how to calculate it all using an x and y speed, but I wanted to go for a different approach this time and use vectors instead though I’m failing to understand it.

I’m sorry for giving so little information, but I’m clueless…

particle.velocity.angle += ?;
particle.velocity.speed += ?;

What’s the equation of modifying the angle and speed of a vector using an acceleration?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:45:53+00:00Added an answer on June 5, 2026 at 10:45 pm

    Rather than storing velocity as angle and speed, store it as x speed and y speed. Then gravity affects the y speed, but not the x speed. Gravity is a force, so it accelerates, meaning the change in speed is constant. At every time delta, change the y speed by the same amount, and you’ll get a gravity effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies if this question is a bit obscure, I've been banging my head against
Apologies for the open endedness of this question, but I really don't know what
I don't think this is not another resize iframe according to content height question.
Apologies, but I have searched and read previous answers on this question but couldn't
Apologies if this question has already been asked but I do not think I
Apologies if this is a very simple question; I don't use XSLT very much
I could not think of a better way to title this question. my apologies
Apologies in advance if this question is a bit vague. It's the result of
Apologies if I've got the terminology wrong here—I can't think what this particular idiom
Apologies for the somewhat unclear question - couldn't think of a better way of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.