ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator Child node not following parent node.
person icon
coltatica
Registered User
Quote
2025-07-27 21:37:34

Is there a way to have a child node standing still at fixed position even if parent node is moving ?

person icon
guest
Guest
Quote
2025-07-28 02:14:13

no, because that is the entire purpose of parenting, but you can use scripting to set the child node's position relative to the parent node's position with every few seconds > set position/execute js... or what not, just don't parent it.

person icon
coltatica
Registered User
Quote
2025-07-28 13:06:34

guest wrote:
no, because that is the entire purpose of parenting, but you can use scripting to set the child node's position relative to the parent node's position with every few seconds > set position/execute js... or what not, just don't parent it.


Yep if I use set position move by a vector, it moves even if parent is moving but if i use fixed position it follows the parent.

person icon
guest
Guest
Quote
2025-07-28 19:38:56

if you want the child to stay in the same spot even when the parent moves, you just move the child in the opposite direction of the parent’s movement every frame. this cancels out the parent’s movement so the child looks like it’s not moving. just get the parent’s position each update, invert it, and apply that to the child. no clue why you'd want to do that but it's possible. it would be easier tho to just not parent it. haha.

person icon
coltatica
Registered User
Quote
2025-07-28 20:11:50

Yep i tried this way also, but as you said it's better to child/unchild after all, thanks.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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