|
| 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 |
|
|
|
| 21 Jan 2015 01:38 PM |
| I really need help with this :P. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 22 Jan 2015 01:48 PM |
@swimguy
Aah that's what I was possibly thinking of. Would that make realistic physics though? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 11 Feb 2015 01:49 PM |
| Tried multiplying by 1/-1 respectively, didn't work lol. |
|
|
| Report Abuse |
|
|