Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Why don't I get the Y-value. Test: (y is 0, but should have a value.) https://workupload.com/file/GSZm...
|
||||
|
This works:
And that also confirms the bug! "CopperCube " has a problem with dynamic JavaScript arrays.. The memory area will overlap. Or do I make a mistake in thinking ? |
||||
|
Generally speaking: CopperCube shouldn't have any problem with dynamic JavaScript arrays, it is using the JavaScript engine from Firefox, which is quite tested. I'm not exactly sure what bug you are describing, especially not with the .ccb file which contains a lot of JavaScript code and I'm not sure where I should be looking at. Could you describe it a bit more exactly what you mean? Or a small test case where the problem you have happens? |
||||
|
Sorry! It has nothing to do with the dynamic JavaScript arrays. The Bug is here: outPos = ccbGetSceneNodeProperty(LevelWall[q], "Position"); LevPosX[q] = outPos.z; //I get this value LevPosY[q] = outPos.x; //I don't get that value!!! (BUG!) outPos.z contains all values. (also outPos.x) If I use '"print (outPos) ", all values are output as Z-position. But I give the values so on: ccbSetSceneNodeProperty(newscenenode, "Position", -y, 0, -x); |
|