Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
1 2 3 4 5 … 18 Next »
Questions and Documentation Requests
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Questions and Documentation Requests
19-04-2019, 03:47 PM, (This post was last modified: 19-04-2019, 04:01 PM by Sir_Cuddles. Edited 2 times in total.)
#5
Sir_Cuddles Offline
TSCM Member
***
Posts: 4
Threads: 1
Joined: Apr 2019
RE: Questions and Documentation Requests
I am wondering how to get quaternions to work in starfall, I was looking at the quaternion library documentation and it seems the "quaternion.New()" function is what I need to use but I can not seem to get it to work. I tried "quaternion.New(Ang)" were Ang is an angle as well as "quaternion.New(E)" were E is an entity and it does not seem to work. I see the function in the documentation says "New(self, ...)" were ... is args but I am not sure what the "self" means and it does not explain. I know I must be doing something wrong.

EDIT: Also, I couldn't find any way to do a change in vector or cross/dot products of vectors so I programmed my own functions for them, if there is already functions for them please tell me otherwise it would be nice if they could be added
Code:
function deltaV( V ) if ( X == nil ) then V1 = V X = 1 return Vector(0,0,0) elseif ( X==1 ) then V2 = V - V1 V1 = V return V2 end end function dotV( V1, V2 ) local Dot = V1.x*V2.x + V1.y*V2.y + V1.z*V2.z return Dot end function crossV( V1, V2 ) local Cross = Vector(V1.y*V2.z - V1.z*V2.y, V1.z*V2.x - V1.x*V2.z, V1.x*V2.y - V1.y*V2.x) return Cross end [/code]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Questions and Documentation Requests - by Person8880 - 08-05-2015, 07:38 PM
RE: Questions and Documentation Requests - by Person8880 - 08-05-2015, 08:06 PM
RE: Questions and Documentation Requests - by Liizzii - 05-02-2016, 01:00 PM
RE: Questions and Documentation Requests - by Person8880 - 05-02-2016, 06:37 PM
RE: Questions and Documentation Requests - by Sir_Cuddles - 19-04-2019, 03:47 PM
RE: Questions and Documentation Requests - by Person8880 - 19-04-2019, 04:53 PM
RE: Questions and Documentation Requests - by Sir_Cuddles - 19-04-2019, 05:11 PM
RE: Questions and Documentation Requests - by Person8880 - 19-04-2019, 06:58 PM
RE: Questions and Documentation Requests - by Sir_Cuddles - 19-04-2019, 07:06 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.