ScratchData LogoScratchData
Back to eventexception's profile

Sin Cos Trigonometrics for game development tutorial

EVeventexception•Created October 18, 2011
Sin Cos Trigonometrics for game development tutorial
11
4
1382 views
View on Scratch

Description

http://mathworld.wolfram.com/Cosine.html http://en.wikipedia.org/wiki/Trigonometric_function Hello Scratchers! I was searching for help on my 3D flight sim http://scratch.mit.edu/projects/eventexception/2088087 but was impatient and tried to help myself. The blue bar is a plane or car direction vector, for your math teacher it was something else. Truck positioning is X * 2 Plane positioning is X only, showing direction seen from above. Hope these samples help you to use SIN / COS for your games! More physics tutorials http://scratch.mit.edu/forums/viewtopic.php?id=56795 ####################### Details: The number 100 is the distance to go in pixels for your Sprite. So if you know you want to move your sprite with the speed of 100 pixels or any other number in a specific direction, you still dont know where to display your object in X and Y coordinates. Ok in a 2D world the Scratch motion command ´move 100 steps´ will do the same, but i needed something for a 3D world, maybe you need something for any ideas with curves and circles! AFTER writing this project i found other users already did similar projects here, but i believe mine is still helpful in a practical way how to apply it to your projects. Random selected similar projects: http://scratch.mit.edu/projects/AtomicBawm3/1884342 http://scratch.mit.edu/projects/JibeCC/634631 http://scratch.mit.edu/projects/dapontes/197456 http://scratch.mit.edu/projects/dapontesgr/1584383

Project Details

Project ID2089891
CreatedOctober 18, 2011
Last ModifiedOctober 18, 2011
SharedOctober 18, 2011
Visibilityvisible
CommentsAllowed