Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Programming and Scripting
Access default Behaviors
Author Text

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


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


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


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

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


   






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