Josh, are you using Vec4 in place of a Quaternion?
EDIT: Nm, I see that you are. That's pretty clever.
I love it man!! :)
EDIT: Nm, I see that you are. That's pretty clever.
Type TVec2 Field x:Float, y:Float End Type Type TVec3 Extends TVec2 Field z:Float End Type Type TQuat Extends TVec3 Field w:Float End Type Function Vec2:TVec2(x#=0, y#=0) Local v:TVec2 = New TVec2 v.x = x v.y = y Return v End Function Function Vec3:TVec3(x#=0, y#=0, z#=0) Local v:TVec3 = New TVec3 v.x = x v.y = y v.z = z Return v End Function Function Quat:TQuat(w#=0, x#=0, y#=0, z#=0) Local q:TQuat = New TQuat q.w = w q.x = x q.y = y q.z = z Return q End Function
I love it man!! :)