Loading...

Line Normal Vector

4,167 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jun 10, 2016

A normal vector is a line segment extending away from the original line at a 90-degree angle. The equation for normal vector of a line can be used complex trigonometry functions, but it can also be calculated by simply reversing the X and Y coordinates of a line.

Normal line calculation is an essential part of a game engine collision detection library component. And with this new addition to our library, calculating perpendicular lines equations has never been easier!

By finding perpendicular vectors, we are enabled to do some really interesting things as far as game development goes. For example, it can be used to determine which side a segment (or a wall in a game world) is pointing in. It is extensively used in collision detection and physics engine algorithms.

Download source code for this tutorial: http://www.tigrisgames.com/src/18
Size: 47.5kb
Desc: JavaScript game engine
Filename: DevTigris-GamedevTutorial-16-src

If you want to help the series, please make a donation!
http://www.tigrisgames.com/donate

Become a Patreon:
http://www.patreon.com/devt

Tigris Games on Facebook
http://www.facebook.com/tigrisgames

Join the cloud-hosted game development Skype group chat
https://join.skype.com/uS7Ul6G2XCe9

(Meet other game developers, share your WIP work, screenshots etc.)

Loading...

Advertisement
When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...