Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
size object

bobby
Guest
Quote
2022-01-13 15:21:34

i'm trying to enlarge a sphere with script commands but i can't find anything, can you give me a hand thanks


sven
Registered User
Quote
2022-01-13 16:08:58

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);


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (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© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact