Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Vector 3D Bug ! With example code to show !

bracer
Registered User
Quote
2019-09-16 22:14:30

var node_to_be_found = ccbGetSceneNodeFromName("cubeMesh1"); //This works.

var node_position = ccbGetSceneNodeProperty(node_to_be_found, "Position"); //This works.

//var screen_position = ccbGet2DPosFrom3DPos(node_position ); //This should work but it doesn't, This makes me cry !
var screen_position = ccbGet2DPosFrom3DPos(node_position.x, node_position.y, node_position.z); //Because the top method doesn't work, you have to manually set it like this, this makes me cry !

//Make sure Overlay's Position Mode is set to absolute (pixels) in this example:
ccbSetSceneNodeProperty(ccbGetSceneNodeFromName("2D Overlay1"), "Pos X (pixels)", screen_position.x); //This works.
ccbSetSceneNodeProperty(ccbGetSceneNodeFromName("2D Overlay1"), "Pos Y (pixels)", screen_position.y); //This works.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (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