ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Access default Behaviors
person icon
Robo
Guest
Quote
2022-03-17 12:40:52

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...

person icon
Robo
Guest
Quote
2022-03-17 12:56:57

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..

person icon
hadoken
Guest
Quote
2022-03-17 13:17:25

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 emoji icon_sademoji icon_sademoji icon_sad ...


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |