Topic: why this is wrong?

in the lua script
  pos = getPosition(sth)
  pos[0]=pos[0]+1

Re: why this is wrong?

in lua indices starts at 1 :

pos[1]=pos[1]+1
pos[2]=pos[2]+1
pos[3]=pos[3]+1

Re: why this is wrong?

thanks

Re: why this is wrong?

I have another question.
It's about the Export/Import.
When I Export My Mesh To Maratis Editor,
The Bounding Box is wrong.

My Mesh's format just Convert this way : .max -> .3ds -> .mesh

In Maratis Editor
PunBB bbcode test
PunBB bbcode test
In Blender
PunBB bbcode test

by the way , I make a game by using maratis,
but I don't know how to open source it.
I write it in pure C++.
Here's my game vedio
http://v.youku.com/v_show/id_XMzM3MDI1NDU2.html

Last edited by lauhonyeung (2012-03-19 05:44:06)

Re: why this is wrong?

nice video ! is it a bomberman remake ?

For the bounding box, maybe the 3ds conversion creates bad matrix,
try to apply the matrix by doing : object > apply > rotation & scale

http://www.maratis3d.com/tmp/blender.jpg

Re: why this is wrong?

yes,I want to put it on github or google code.
Thanks for answering.