Тёмный

Projectile Physics - Roblox Scripting Tutorial 

Suphi Kaner
Подписаться 18 тыс.
Просмотров 96 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 401   
@mrstarfish
@mrstarfish 2 года назад
You're one of the best scripting channels I seen, most of the tutorials you upload are things that are so useful that I didn't even think about!(I was going to use bezier curves for my projectile😅) Your tutorials are very helpful to me and many others, Hope you're having a wonderful day!
@5uphi
@5uphi 2 года назад
Thank you, I had a very nice day today and I hope you also have a wonderful day
@yourmomlookslikeurdad6588
@yourmomlookslikeurdad6588 2 года назад
Your voice, your speed, your explanation. It's all perfect.
@5uphi
@5uphi 2 года назад
(˵◠‿◠˵)
@JDevYT
@JDevYT 2 года назад
I was looking for this! I actually tried to program my own physics into Roblox -- however I had no idea I could completely override their physics engine. This is extremely useful, thank you.
@orips
@orips 2 года назад
Wow, I'm surprised youtube recommended this to me. This is amazing! You explained a useful concept that can apply to many things in a extremely simple way, while showing examples and graphs. Amazing!
@maxbd2618
@maxbd2618 9 месяцев назад
Absolutely amazing breakdown and pacing, great job explaining everything and not over complicating it.
@tempus1232
@tempus1232 2 года назад
Most underrated scripting channel I need, not too simple but not too complicated
@zechariahcaraballo8765
@zechariahcaraballo8765 Год назад
exactly I dont know why other scripting channels seem to either be so simple and basic its not even useful and others are so complicated it feels like they dont even know what they are talking about and usually dont explain a thing not nearly as good as this guy, we need more scripting channels like him
@MaxL8200
@MaxL8200 Год назад
I struggled so much
@mattc0473
@mattc0473 Год назад
I was looking for a way to make a curving projectile for my game, this is perfect, its so easy to understand. Thanks man, keep it up!
@frootloopii
@frootloopii 18 дней назад
you came in CLUTCH with my player cannon system!! thank you so much for your videos!!!💪
@Ricky-ch7ew
@Ricky-ch7ew Год назад
this is actually a really good tutorial and i never knew learning high school physics can help me understand it more lmao
@Korum211
@Korum211 15 дней назад
Appreciate this friend, this is super articulate and cool.
@PoppinCorn
@PoppinCorn 2 года назад
I love your videos, you actually make tutorials about underrated scripting topics
@Hazuzis
@Hazuzis 11 месяцев назад
Tysm, you actually helps people, thank you for existing!
@hdbsbejfbbf1864
@hdbsbejfbbf1864 2 года назад
I’ve always needed this formula, thanks so much for figuring this out
@Bluoed
@Bluoed Год назад
This video came out of nowhere and solves the exact problem I was having, despite me spending ages searching for a solution. Great video!!
@superkc2557
@superkc2557 2 года назад
Perfectly timed video! I couldn't think of something to make but I wanted to script, lol.
@cruz6538
@cruz6538 2 года назад
Mood 😩, I can never think of what to code
@sovietcrab1876
@sovietcrab1876 Год назад
this is the best roblox tutorial that I have EVER seen. It's really well thought out
@superstorm4228
@superstorm4228 Год назад
Thanks for the video suphi. This was was really awesome and has lots of fun and interactive applications.
@seadrown6252
@seadrown6252 2 года назад
You're so helpful for people trying to go from intermediate to advanced scripters on Roblox, thank you
@정준희-e1w
@정준희-e1w 2 года назад
Thank you for helping i honestly dont know that much math but you help me alot with these ecuations!
@charger4299
@charger4299 7 месяцев назад
thank you i had seen the phicis funtins in documentation but i didnt know how they worked so o just came up with my own way but i want to improve and was looking for helpful videos thank you you explained it vey well definetly gonna rewatch a couple of times
@Cowwy
@Cowwy 9 месяцев назад
Wow. Really well explained. Deserves way more subs.
@abukaram9343
@abukaram9343 2 года назад
Like 2 minutes in and you've solved the issues I was having. I didn't realize that box for showing what was going on was there, I didn't
@5uphi
@5uphi 2 года назад
I'm happy you managed to solve your problem in 2 minutes
@ropi314
@ropi314 Год назад
Awesome videro! I will be using this for my game :)
@KebeMaro
@KebeMaro 2 года назад
Keep up the amazing work , Every video you make is always something unique an great!
@5uphi
@5uphi 2 года назад
Thank you very much!
@gameryt-oo3tk
@gameryt-oo3tk 2 года назад
Just wanted to express how helpful your videos are!! you are extrely good at explaining tNice tutorialngs in-depth but still at a basic level for
@mattsYT42
@mattsYT42 2 года назад
this is aweeeesome. saved to my playlist 😊
@ahmad.mhamed
@ahmad.mhamed 2 года назад
So smooth! EverytNice tutorialng he says goes into my brain and sticks in.
@koainanis5840
@koainanis5840 Год назад
very well explained tutorial my friend. 💯👍 today i learnd a lot and bring it into a small game. every video that you made is so interesting and helpful.
@codeinvalid
@codeinvalid Год назад
This was really intuitive!
@williamospina6371
@williamospina6371 Месяц назад
excellent job bro , greeting from colombia :D
@_quite.essentiallyjay
@_quite.essentiallyjay Год назад
i usually use bezier curves but this is amazing
@feimfeim7095
@feimfeim7095 Год назад
Simply an amazing Turorial i understand everything you said Thank you so much
@shivamkumargaur9871
@shivamkumargaur9871 2 года назад
Thanks bud! great video and instructions.
@kirby7350
@kirby7350 2 года назад
Dude every video you make is amazing what the heck
@5uphi
@5uphi 2 года назад
Thank you
@puggyback
@puggyback 7 дней назад
Amazing video!
@barnacolium6947
@barnacolium6947 Год назад
damn you can type fast. also your amazing at explaining the concept.
@DanielMoleGuacamole
@DanielMoleGuacamole 2 года назад
Math is my worst skill 😅. Thanks for uploading this ive been lookin for something like this for a while
@Monopulator69420
@Monopulator69420 2 месяца назад
Thanks! I will apply this to my mortar system
@alexisfernandez8052
@alexisfernandez8052 2 года назад
If it is intriguing to you, you won't be forgetting it easily
@normik7771
@normik7771 2 года назад
I am getting back into production after so ti and tNice tutorials makes it so easy to understand. Thank you so much for making these videos.
@5uphi
@5uphi 2 года назад
No problem
@Anobot
@Anobot 2 года назад
Ay thanks for this useful video!
@thenermer
@thenermer 2 года назад
how have I not watched your videos before
@KashTheKingYT
@KashTheKingYT Год назад
This is amazing!
@shahbazqasim8682
@shahbazqasim8682 2 года назад
Bro! Thanks so much! I got and installed and wNice tutorialle watcNice tutorialng tNice tutorials I'm following your steps, and I really fully understand. So Kool! Thanks
@GalaxyWhale999
@GalaxyWhale999 2 года назад
This is an awesome video, tysm
@IncredibleTeamAidan
@IncredibleTeamAidan Год назад
this makes it seem so simple!
@vinsovan9707
@vinsovan9707 2 года назад
I love the channels that explain what every single line of code does. This is absolute perfection. Also I'm only a 7th grader so do you mind explaining to me how it's possible to subtract vector3s?
@5uphi
@5uphi 2 года назад
A vector3 stores 3 numbers for instance 1 vector3 has the values 2, 3, 4 and another vector3 has the values 5, 6, 2 if you subtract these 2 vector3s it's doing 2 - 5, 3 - 6, 4 - 2 and it will create a new vector3 with the values -3, -3, 2
@mathijsdsv8780
@mathijsdsv8780 2 года назад
I just adore your videos
@zn3128
@zn3128 2 года назад
Bro, you're a great teacher and explainer! Thank you for tNice tutorials tutorial!
@rebecabalderas3715
@rebecabalderas3715 2 года назад
fire video, thanks bro
@wahra4526
@wahra4526 2 года назад
bro thanks so much. dis video is tiless 3 years ltr n still great
@5uphi
@5uphi 2 года назад
No problem
@CartmanRoblox
@CartmanRoblox 4 месяца назад
Great tutorial! I do have a question (if you'll even respond on a year old video), i want the projectile to curve upward instead of not curving much, would I have to use the first method of duration or is there a way to do it with the final method?
@ayoomike
@ayoomike 2 года назад
unironically felt my brain expand and my inability to do math slowly fade away
@dahorrorazguy7905
@dahorrorazguy7905 Год назад
Haha same
@urbanexploration818
@urbanexploration818 2 года назад
Completed ur 500 likes mate
@ignayep
@ignayep Год назад
Good Video!, I hope you are good!
@5uphi
@5uphi Год назад
Thanks I'm doing well how are you doing?
@ignayep
@ignayep Год назад
@@5uphi Excellent, thank God, I really like your videos, I have learned a lot, many successes!
@ar1n372
@ar1n372 2 года назад
I'm a rapper who can't really afford production so I want to learn to make my own soft. I just want to say that I appreciate your teacNice tutorialng
@NikitaIsLive
@NikitaIsLive 2 года назад
Thank you for taking the ti to do tNice tutorials i know I’m gonna enjoy figuring it out
@EuAmoBloxyCola
@EuAmoBloxyCola Год назад
insane tutorial, thanks
@Metvalv
@Metvalv Месяц назад
Hi I have a question, in the video how I learned to make Roblox games in a week, made by binzudev. He made a ball launcher similar to yours, but he had the balls go in random directions. Can you tell me how to make it JUST like his? Thanks. Timestamp 14:17 on his vid.
@alessandromarin3803
@alessandromarin3803 2 года назад
I was surprised how understandable tNice tutorials tutorial is, thanks!
@5uphi
@5uphi 2 года назад
No problem
@oilo742
@oilo742 Год назад
im having more fun than i should using car free models thanks
@cherifiimene2625
@cherifiimene2625 2 года назад
it very well! Good Job!
@kennethkline7702
@kennethkline7702 2 года назад
I read somewhere that you should always set the parent of a new/cloned part at the very end (after setting any parameters). Is this true, or does the impulse/force & network owner need to be set after the parenting? I just LOVE your tutorials btw!
@5uphi
@5uphi 2 года назад
Yes it's better to set the parent at the end and yes some things only work after you have set the parent like impulse and setnetworkowner
@AlberTesla1024
@AlberTesla1024 Месяц назад
To those who didn't understand why he halved the gravity value to get the initial vertical velocity, here is an explanation : Consider the common link between x and y axis movement is time. Suppose to move the ball from point A to point B without gravity is T seconds, without gravity the ball will go straight. But in presence of Gravity we need to give the vertical velocity in such a way that it reaches back to the Point A vertical Position in T time also. Also the time taken by ball to reach the max height is same as time taken by ball to come down from the max height. Hence the final velocity will be zero. the initial upwards velocity can be calculated as : v = u - gt where v = final velocity, u = initial velocity, g = gravity, t = time, total time of flight is T, hence to reach max height it's T/2 and v = 0 at max height. final equation becomes u = gt, where u = gravity * T/2., (this equation is for Y axis) as in roblox the vertical axis is the Y axis.
@5uphi
@5uphi Месяц назад
So in short part go up for 50% of the time then part go down for 50% of the time ;)
@-CENSORED0-
@-CENSORED0- 2 месяца назад
instructions unclear, my workspace’s gravity was 0 and my computer exploded
@ascel6799
@ascel6799 4 месяца назад
Wow that's easy, thanks brodi
@asmaafifah1262
@asmaafifah1262 2 года назад
Nice tutorial Michael,
@5uphi
@5uphi 2 года назад
thanks George
@jaivierbirring9757
@jaivierbirring9757 Год назад
This helped me so much
@fr1gid
@fr1gid Год назад
this helped with my nextbots game
@aren1709
@aren1709 7 месяцев назад
great video! but if i can ask (and maybe this is already mentioned but idk), why should the force of the y axis on the projectile half of the gravity? why cant it be other values?
@5uphi
@5uphi 7 месяцев назад
If the part starts at a velocity of 0 and gravity is set to -10 after 1 second the part will have a velocity of -10 If I set the parts velocity to 5 after 0.5 seconds the part will have a velocity of 0 and after a total of 1 second will have a velocity of -5 So if it takes one second for the part to get to it's target we set its velocity to 50% of gravity
@aren1709
@aren1709 7 месяцев назад
@@5uphi ah ok i get it now, thank you man! love your videos 👍
@danielboigenzahn9565
@danielboigenzahn9565 2 года назад
Amazing share
@gobreh6727
@gobreh6727 2 года назад
I feel like I’m gaining iq while watching your videos hahaha. Thank you so much for making these, I really enjoy them!
@coolcons1930
@coolcons1930 2 месяца назад
You can also change the arc by lowering the gravity multiplication and also multiplying the direction by what the gravity is divded by 0.5
@5uphi
@5uphi 2 месяца назад
I believe we cover that in the video already
@coolcons1930
@coolcons1930 2 месяца назад
@@5uphi oh whoops I didn’t see
@ritsu9837
@ritsu9837 2 года назад
omg I discovered a jem of a channel
@goreacraft
@goreacraft 2 года назад
brilliant and simple
@wowland6873
@wowland6873 2 года назад
This is fantastic! Although I do have a question, is it possible to add a distance limit? For example only allowing the projectile to shoot out 125 studs from its current position?
@5uphi
@5uphi 2 года назад
yes its possible if you message me in discord id be happy to help
@wowland6873
@wowland6873 2 года назад
@@5uphi Sure thing! My tag is wowland#0928
@mythored8054
@mythored8054 2 года назад
@@5uphi whats your discord id sir
@C901-p8i
@C901-p8i 2 года назад
years! Let know your questions!
@5uphi
@5uphi 2 года назад
What's 1 + 1?
@Y_Bahy
@Y_Bahy 2 года назад
super dope... thanks
@lamortoutchetche6156
@lamortoutchetche6156 Год назад
Love this
@andreypetrovart
@andreypetrovart 7 месяцев назад
Hi, thank you so much for the great tutorial! I have a question. I noticed that there is a slight delay between the appearance of the projectile and the beginning of its movement. Do you know how to get rid of the delay?
@5uphi
@5uphi 7 месяцев назад
If you do it locally there won't be a delay as the information won't need to travel between your computer and Roblox servers
@andreypetrovart
@andreypetrovart 7 месяцев назад
@@5uphi Thank you for the quick response and for the information!
@atomixstrange
@atomixstrange 2 года назад
tNice tutorials tutorial was very satisfying
@nanthiriwinOfficial
@nanthiriwinOfficial 2 года назад
nice tuto, I had the sa issue
@knight9441
@knight9441 2 года назад
Thank you so much!!
@5uphi
@5uphi 2 года назад
Your very welcome
@d.veloper826
@d.veloper826 Год назад
You are not one of the best scripting channels, you are the best scripting/tutorial channel in my obviously objective opinion.
@randomgreatness2298
@randomgreatness2298 2 года назад
Absolutely incredible tutorial! I'm trying to implement an AI spear throw, but I'm having trouble figuring out a way to have to object move nose first along the trajectory it's thrown at. I've tried a few things with alignorientation that dont quite work, any insight on how I can do this?
@5uphi
@5uphi 2 года назад
If you message me in discord I can try to help
@randomgreatness2298
@randomgreatness2298 2 года назад
@@5uphi Sure thing
@Total_Studios_Games
@Total_Studios_Games 2 года назад
Really helped in 19 thx
@mr.crazycrest9195
@mr.crazycrest9195 3 месяца назад
Great tutorial! I do want to know though how you could implement all this into a tool. I'm trying to make it so that whenever a player clicks somewhere, it'll spawn in the "From" part while "To" stays in the tool. Making it seem as though the player is shooting a projectile towards the spot. Thank you!
@ManlyCreator
@ManlyCreator Год назад
Thanks so much for actually explaining what you're doing, but I'd like a little bit more knowledge on these systems. What math would you recommend learning to better understand the physics in this game?
@5uphi
@5uphi Год назад
I personally have never learned math by trying to learn math what I would do in the past is keep reading the code over and over going over each step trying to follow the numbers as they go through the code and understand how each line of code changes the number to get the final value
@ManlyCreator
@ManlyCreator Год назад
@@5uphi I see, so would you just recommend watching enough tutorials until I have a good grasp of physics?
@5uphi
@5uphi Год назад
I personally never watched any videos to learn physics
@mojcalicen101
@mojcalicen101 2 года назад
just seeing tNice tutorials tutorial so glad I did, I was about to go back to jogging in the creek, but now there is hope and inspiration will definitely
@JessicaCrawford352
@JessicaCrawford352 11 месяцев назад
Cool, I made a gear with this but it wasn't completely accurate when the person holding it was moving when they threw it, do you have any idea why? (Also sometimes is just isn't accurate when target is moving.)
@5uphi
@5uphi 11 месяцев назад
Sounds like a networking problem that can be fixed by using network ownership
@Whitethunder-vf4px
@Whitethunder-vf4px 2 года назад
So useful thx
@andrew._new
@andrew._new Год назад
I have a question (or a request of a video), I clicked in this video because I though addimpulse could be used to a sliding system, since Im trying to make a system that recognizes if your going down a slope or climbing one, affecting the speed. Could you help me figuring what I actually need to do?
@5uphi
@5uphi Год назад
You should shoot a ray down to the floor and use the normal vector to workout the slope or you could shoot 2 rays one in front and one behind and if the one in front is shorter you know where going up a slope
@andrew._new
@andrew._new Год назад
@@5uphi alright noted, I already know how to recognize it, but what about the velocity??
@5uphi
@5uphi Год назад
You could use a humanoid or Linearvelocity constraint
@andrew._new
@andrew._new Год назад
@@5uphi alright, one problem, the character flings a little bit, its no game breaking bug, but still, do you know any way to prevent this?
@5uphi
@5uphi Год назад
Well I have no idea what your doing so I have no idea what is happening
@tahiranaqvi2654
@tahiranaqvi2654 2 года назад
I got a question about infinite terrain plugin. whenever i make a biome or a terrain when I test it in the studio test launcher it wont load the rest of the map it only loads the part of the map that I hovered over while editing in studio any guide would be appreciated. Although nice job with the plugin I really love it
@5uphi
@5uphi 2 года назад
First press the setup button then press the save button and put the terraindata into the data folder you can message me on discord for help
@tahiranaqvi2654
@tahiranaqvi2654 2 года назад
Tysm
@tahiranaqvi2654
@tahiranaqvi2654 2 года назад
I'll message u from my legerdemainlol 9571 account
@ritsu9837
@ritsu9837 2 года назад
im having trouble understanding on 5:22, how did you come into conclusion that the amount of time the projectile will go from part 1 to part 2 is 1 second?
@5uphi
@5uphi 2 года назад
If you set a parts velocity to 0, 0, 6 then it will take 1 second for the part to move 6 studs on the Z axis if you set the velocity to 0, 0, 54 then it will take 1 second for the part to move 54 studs on the Z axis
@ritsu9837
@ritsu9837 2 года назад
@@5uphi oh i see thank you for replying you are a goated youtuber fr
@jakubkoondrus9062
@jakubkoondrus9062 2 года назад
EXACTLYYY im learning tNice tutorials tNice tutorialng when im stressed out becuz of exams xD
@Tettzz
@Tettzz Месяц назад
WOAH THANKS
@IDKcentral334
@IDKcentral334 2 года назад
Thank you for tNice tutorials. You've done a great job breaking down the features and build. I can now concentrate on my instead of the
@masonbuk9092
@masonbuk9092 Год назад
he types out the roast before the argument even begins
@alek002
@alek002 3 месяца назад
Thanks!
@dfzoz9032
@dfzoz9032 Год назад
I was able to apply drag on my projectiles, but i wanted to get the required initial velocity to travel x distance on a θ angle, but its too much pain trying to get the derivations for velocity, because drag force, which is based on current velocity, changes acceleration, which changes velocity, which changes drag, and so on lol. I saw it can be approximated using some iterations but even that was too hard for me.
Далее
Programming Rarity is Harder Than You Think
12:31
Просмотров 275 тыс.
Handsoms😍💕
00:15
Просмотров 4,8 млн
aespa 에스파 'Whiplash' MV
03:11
Просмотров 16 млн
How To EASILY Make Procedural Animations In Roblox
6:46
The Most ACCURATE Projectile in ROBLOX!!
25:37
Просмотров 43 тыс.
The ONLY Raycasting Tutorial You'll EVER NEED
23:54
Просмотров 24 тыс.
I Made The Ultimate Cheating Device
9:39
Просмотров 1,2 млн
10 Minutes vs. 10 Years of Sculpting
19:48
Просмотров 627 тыс.
ROBLOX ADDED ME..
10:16
Просмотров 145 тыс.
I Optimised My Game Engine Up To 12000 FPS
11:58
Просмотров 702 тыс.
What is Object Oriented Progamming?
13:27
Просмотров 42 тыс.