-
Hi, I am not a gaming person but trying to learn 3D for industrial application. I am trying move a bone or a node of my model. I have posted the code below and expecting it should move (change the position) the bone or node but it does not. The similar code does move it in Unity. The stride model are reprented as model and skeleton different then unity and that is where I guess I am having issue.The thing I am trying to do should be very simple however I am not sure how to do it properly in Stride. I would appreciate any help on this. I expect to move M2_M1 node(with child) to move by 5 units.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
zPosition is a struct, not object |
Beta Was this translation helpful? Give feedback.
-
you have the bone link component |
Beta Was this translation helpful? Give feedback.
-
I have my code working now after changing like as below. It was not working because Transform is a structure and hence copying it to zTransform was copying the data and updating was updatig the copy. In Unity it is a class so it works. To make it work in Stride, I keep reference to the array which is assigned by reference. Directly changing the stricture using that reference resulted in the node/bone moving. Thank you for your support.
|
Beta Was this translation helpful? Give feedback.
I have my code working now after changing like as below. It was not working because Transform is a structure and hence copying it to zTransform was copying the data and updating was updatig the copy. In Unity it is a class so it works. To make it work in Stride, I keep reference to the array which is assigned by reference. Directly changing the stricture using that reference resulted in the node/bone moving.
Thank you for your support.