Tutorial 15 on elevators up.
It's the best way I could think of making it that didn't require anything else such as the Z output or a gyroscope. I just simplified it a bit though.
Sounds interesting, I'm looking forward to watching your new tutorial![]()
Tutorial 15 on elevators up.
Tutorial 16 (2 part tutorial) up on perfecting the turret. 2 turret additions in one day! w00t!
Orb, Just a friendly reminder that the nocollide can be undone by just right clicking on the object you applied nocollide all to again.Tutorial 15 on elevators up.[/b]
Nice tutorial, I'm sure it's really helpful to all the community
Here's something I would like to point out about the way you use to add the angle difference.
Here's what you do:
OK, so I did some testing with these 2 different ways, and here are the results of such test:Code:Elevation + atan(HEIGHT/Distance)
In this test I use an angle of 45, a distance of 1 and the HEIGHT I want to add is 1 (these values are just to keep it simple).
Let's begin replacing the vartiables with the values, and then solving:
Now, we can notice without even drawing it that it can't be 90.Code:Elevation + atan(HEIGHT/Distance) 45 + atan(1/1) 45 + 45 = 90
Cheers
Don't use values like 1. Obviously the formula gets messed up when you get super close lol
No, serously, I used 1 because it's easier to draw but try replacing the distance to 60, and the height to 60 (the same you use in your tutorial): You'll get the same result.
Ok, I made this little images for explanation (sorry for the crappy quality, I used MS Word)
![]()
Yes, for my formula to work you have to be more than 60 units away. big deal. It doesn't work when you're less than 60 units... 60 units is very small. Once someone's within 60 units of your turret it doesn't matter anyways.
Bookmarks