refactored scripting to hide actual script implementation
This commit is contained in:
parent
550d27273f
commit
a99906317d
14 changed files with 140 additions and 62 deletions
|
@ -6,9 +6,27 @@ print("hellow pixwerx")
|
|||
local v = pw.vector3.new()
|
||||
v:set(0,1,2)
|
||||
|
||||
-- objects need to be cloned
|
||||
local v2 = v:clone()
|
||||
|
||||
-- manipulate stuff
|
||||
v.x = 0.2
|
||||
v.y = pw.pi
|
||||
|
||||
print(v.x)
|
||||
|
||||
print(v:v())
|
||||
print("v : ", v:v())
|
||||
print("v2: ", v2:v())
|
||||
|
||||
local q = pw.quaternion.new()
|
||||
|
||||
print("q",q.x,q.y,q.z,q.w)
|
||||
|
||||
local aa = pw.axisangle.new()
|
||||
|
||||
-- assign vector to axis
|
||||
aa.axis = v
|
||||
|
||||
print("aa",aa.axis.x)
|
||||
|
||||
--local scene = pw:scene.new()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue