Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
ccbSetSceneNodeProperty("SceneNode", "TargetX", value1);

xanimalkingx
Registered User
Quote
2018-12-05 08:31:11

Is there a way to set a single coordinate of a vector3d of a scenenode, like only the X or Y coordinate without changing the other coordinates?
Something like:
ccbSetSceneNodeProperty("SceneNode", "TargetX", value1);

Instead of:
ccbSetSceneNodeProperty("SceneNode", "Target", value1, ccbGetSceneNodeProperty("SceneNode", "Target").y, ccbGetSceneNodeProperty("SceneNode", "Target").z);



erik
Registered User
Quote
2018-12-28 13:20:54

I don't think it is possible, no :(


erik
Registered User
Quote
2018-12-28 13:21:50

I don't think it is possible, but you can make it much shorter:


var t = ccbGetSceneNodeProperty("SceneNode", "Target");
t.x = value1;
ccbSetSceneNodeProperty("SceneNode", "Target", t);



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