Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

How to use Vectors?


  • Please log in to reply
6 replies to this topic

#1
asoka0906

asoka0906

    Member

  • Members
  • 15 posts

Hi! Can someoone teach me how to use vectors like in Rumble R or Viktor E

 

Thank you!


  • 0

#2
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

https://www.mathsisf...ra/vectors.html


  • 0

#3
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

Initalize Vector -> var = Vector(x,y,z)

 

You can add/subtract Vectors together

 

You can multiply/divide vectors with numbers

You can multiply 2 vectors (Vector1*Vector2) Scalarprocut

 

Im sleepy that's why this looks so ****ty.

Check Inspired.lua source for details.


  • 0

#4
asoka0906

asoka0906

    Member

  • Members
  • 15 posts

 

 

Initalize Vector -> var = Vector(x,y,z)

 

You can add/subtract Vectors together

 

You can multiply/divide vectors with numbers

You can multiply 2 vectors (Vector1*Vector2) Scalarprocut

 

Im sleepy that's why this looks so ****ty.

Check Inspired.lua source for details.

thanks again Zwei!


  • 0

#5
asoka0906

asoka0906

    Member

  • Members
  • 15 posts

What does normalized do?


  • 0

#6
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts
It shortens the vector to the length of 1 unit.
Example Vector(5,5) -> Vector(0.7,0.7)
Because 1 = sqrt (0.7^2+0.7^2)
(Approximately)
  • 0

#7
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts
There is also perpendicular, which turns the vector in a 90° angle.
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users