 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 ?
|
 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.
|
 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.
|
 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.
|
 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.
|