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!
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.
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!
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
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
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.
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
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?
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
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?
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.
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!
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.
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?
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
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?
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?
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?
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!
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?
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
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
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.)
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?
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
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
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?
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
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.