Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
i'm trying to enlarge a sphere with script commands but i can't find anything, can you give me a hand thanks |
||||
|
All you need to do is set object SCALE ccbGetSceneNodeProperty(OBJ, "Scale"); Example: Use it with KEYBOARD and EXECUTE JS action. var s = ccbGetSceneNodeFromName("cubeMesh1"); var tt=ccbGetSceneNodeProperty(s, "Scale"); ccbSetSceneNodeProperty(s, "Scale",tt.x+1, tt.y+1,tt.z+1); |
|