Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I thought to try and get access to inbuilt behaviors so I can change some stuff dynamically - seems impossible. I didnt get very far but got this working: var cube = ccbGetSceneNodeFromName("box"); var obj = ccbGetSceneNodeProperty(cube,"Position"); var properties = []; for(var key in obj) {properties.push(" " + key + " ");} var sh = properties.toString(); print(sh); Output: x , y , z , add , substract , getLength , normalize , toString just shows available dot notation methods/functions available....I did get the whole function code for each above to print out one time but cant seem to replicate it... |
||||
|
note - Im fully aware that this is not meant to be accessed and only available in the Studio version (if even that) but had a go anyways.. |
||||
|
thanks @Robo for bring the subject to our all attention ... ...I'm also very interested in getting access to built-in behavior and action values, especially regarding collision and z-order adjustments... unfortunately this goal may be out of reach for using with Javascript ... |
|