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
 

Re: [[~~~~~Verlet Integration~~~~~]]

Previous Thread :: Next Thread 
Blankscarface23 is not online. Blankscarface23
Joined: 12 Apr 2011
Total Posts: 1234
10 Mar 2014 11:11 PM
A topic that confuses me is Verlet integration. How does it work? How is it integrated into ROBLOX Lua? Any help would be appreciated, thanks.

-Blank
Report Abuse
Blankscarface23 is not online. Blankscarface23
Joined: 12 Apr 2011
Total Posts: 1234
10 Mar 2014 11:39 PM
Bump
Report Abuse
Haschwalth is not online. Haschwalth
Joined: 30 Sep 2009
Total Posts: 24661
10 Mar 2014 11:50 PM
It's quite complicated if you aren't aware of the backgrounds of this. If you don't know how F=ma, it's due to the derivative momentum/dx and momentum is mass* velocity. This is how forces are applied to the aspects of gaming.

Basic principles that must be acknowledged:
-v=dx/dt
-a=dv/dt

Now, since mass is given by roblox already pre-defining it (you can use GetMass function to check), if we know the velocity and acceleration , the distance over the time elapsed (dt) can be solved for.


d = vi * dt + 0.5 * ai * dti^2 which then can be identified as a more simpler term that you most likely have seen before...

d = vt + (1/2)at2

using integration:
v= velocity
v@current interval= v@pastinterval(currentinterval for lets say 1?) - a(pastinterval)* dt(pastinterval)

It's kind of hard to explain ._.



Report Abuse
Haschwalth is not online. Haschwalth
Joined: 30 Sep 2009
Total Posts: 24661
10 Mar 2014 11:51 PM
pastinterval in the case would be its current interval -1
Report Abuse
RobustPhysics is not online. RobustPhysics
Joined: 12 Jul 2012
Total Posts: 3064
11 Mar 2014 12:17 AM
I'm not sure I'd be very good at explaining, so I'll just link you to a useful article explaining it along with an actual application of Verlet Integration.

Just search "simulate tearable cloth" in google, and click the site one at gamedevelopment.tutsplus

It might take you a while to wrap your head around it, so just read carefully.
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