generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

*experianced* Missle trajectory

Previous Thread :: Next Thread 
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
06 Jun 2014 04:09 PM
Ok so I am building a game that involves cannon and I also just finished taking Algebra I in school and learning about parabolas and all that good stuff... Anyway I was wondering if I would be able to apply algebra to roblox in a script to make an arching cannonball,

So would a use a quadratic equation like this?

x^2 + x

And hints or ideas would be greatly apprectitated

Thanks,
-Solvar
Report Abuse
Kirbyfan56 is not online. Kirbyfan56
Joined: 29 Oct 2007
Total Posts: 179
06 Jun 2014 04:12 PM
you can try your algebraic equations by using print(equation here)

such as
x=2
y=5
print(x+y)
or whatever
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
06 Jun 2014 04:12 PM
If you use velocity and just calculate the barrel angle needed to reach the point given the applied velocity, the physics engine will take care of the arching for you

~The herp lerped a derp~
Report Abuse
Kirbyfan56 is not online. Kirbyfan56
Joined: 29 Oct 2007
Total Posts: 179
06 Jun 2014 04:12 PM
i just noticed i probably just hinted the obvious
Report Abuse
7Dimensions is not online. 7Dimensions
Joined: 11 May 2014
Total Posts: 190
06 Jun 2014 04:13 PM
Using quadratic equations could be a possibility, but let me remember you roblox has a physics engine, which means, a part will drop.

Just give it a velocity, I doubt you need any raycasting stuff, a simple cannonball can easily be edited from the roblox slingshot.

Plugin Developer | Builder | Musician
Report Abuse
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
06 Jun 2014 04:16 PM
The thing is whenever I use body velocity it just floats? It won't do any dropping unless the velocity is disabled or removed...
Report Abuse
7Dimensions is not online. 7Dimensions
Joined: 11 May 2014
Total Posts: 190
06 Jun 2014 04:18 PM
Simply fix the amount of force you give to the bodyvelocity.
Report Abuse
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
06 Jun 2014 04:19 PM
Oh ya lol forgot about that I normall just set it to inf geez smart one lol thanks I'll try that soon and tell you the result
Report Abuse
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
06 Jun 2014 04:35 PM
OK well Roblox crashed when I thought I almost had it right so I will look into it but I think I got the right Idea so thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image