Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
parenting objects

spicymilk
Registered User
Quote
2023-06-06 04:14:06

so with scripts how would you set a scene node to be the child of one and then on an event make a scene node independent?

is that possible


Guest
Guest
Quote
2023-06-06 05:23:44

"ccbSetSceneNodeParent(sceneNode, newparentnode)

Sets the parent scene node of a scene node. If this node has already a parent, it will be removed from that parent. Note that by setting a new parent, position, rotation and scale of this node becomes relative to that of the new parent."

https://www.ambiera.com/coppercu...


spicymilk
Registered User
Quote
2023-06-06 15:35:37

so If I parent an object

and then tell it to parent to that scenenode node again?

it will unparent the object?


Guest
Guest
Quote
2023-06-06 17:57:11

That's what the document says but I'd parent it back to the root node unless I had a specific reason not to do so. See ccbGetRootSceneNode().


spicymilk
Registered User
Quote
2023-06-07 16:40:33

Thanks


Guest
Guest
Quote
2023-06-07 17:19:36

Welcome.


michaellimpre
Registered User
Quote
2023-06-13 16:31:27

Assess your organization's IT requirements and determine which areas or tasks you would like to outsource. This could include software development, network management, cybersecurity, helpdesk support, cloud services, infrastructure management, or database administration https://mlsdev.com/blog/outsourc....


Create reply:


Posted by: (you are not logged in)


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