cleanup before reworking the scripting engine layout:

This commit is contained in:
Hartmut Seichter 2019-01-22 15:21:04 +01:00
parent 4ff557d446
commit 803af8c37a
6 changed files with 130 additions and 108 deletions

View file

@ -0,0 +1,28 @@
-- loading our libraries
pw.script:initialize()
print("hello pixwerx!")
local v1 = pw.vector3.new(3,2,1)
print("v1 ",v1.x,v1.y,v1.z)
local q = pw.quaternion.new()
q = pw.quaternion.identity
print("q",q.x,q.y,q.z,q.w)
qi = q.inverse
print("q.inverse",qi.x,qi.y,qi.z,qi.w)
local q2 = pw.quaternion.new(0,0,0,1)
-- bug!
--qm = pw.quaternion.lerp(q,qi,0.5)
--print("q.m",qm.x,qm.y,qm.z,qm.w)
-- axis angle test
local aa = pw.axisangle.new(v1,0.707)
print("aa.axis",aa.axis.x,aa.axis.y,aa.axis.z)
print("aa.angle",aa.angle)