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 » Scripters
Home Search
 

Re: Simulating Ball Physics?

Previous Thread :: Next Thread 
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
21 Jan 2015 10:15 AM
How would I simulate a kick? And how would I simulate the ball bouncing on walls? I've done it, but I hardcoded numbers, and it's not very realistic. I want to make it more realistic. How can I do that? Thanks.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
21 Jan 2015 01:38 PM
I really need help with this :P.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
21 Jan 2015 03:28 PM
Anyone?
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
21 Jan 2015 03:33 PM
If I remember correctly, you could just use a BodyForce on the ball in the direction of the player's lookvector. You may need to multiply the force on the axes to get it to move.

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
21 Jan 2015 03:34 PM
Decrease the force and send it in the opposite direction of that it came in.

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
22 Jan 2015 01:48 PM
@swimguy

Aah that's what I was possibly thinking of. Would that make realistic physics though?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
22 Jan 2015 01:50 PM
I recommend you just use Part.Velocity. If it doesn't stay in the air long enough, insert a BodyForce and add force on the Y vector until you are satisfied with its gravity.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
22 Jan 2015 08:54 PM
Aah, ok.

An issue I had with that was that the velocity wouldn't change when the script changed it unless I anchored the part, changed the velocity, then quickly unanchored it for some reason :P.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
11 Feb 2015 10:57 AM
Sorry for the long responce.

Im trying using lookVector with a BodyVelocity, but the ball just goes straight forward all the time, when I want it to go to the left/right also depending on which leg kicks it. Otehr than that, I really like the lookVector approach. How do I do that with lookVector?
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
11 Feb 2015 01:49 PM
Tried multiplying by 1/-1 respectively, didn't work lol.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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