Constrain drag script

Here are some core features: Feature Overview | Needle Engine Documentation

YEp and Animator + AnimatorController + a Button component can be universal workflow, and can be achived similar result as your bike example but no typescript needed

by user 869976161550217286

but have to be aapplied at eeeaaach object

by user 869976161550217286

How many objects to you have? You can re-use animatorcontrollers etc if they all have the same movement type.

at this momeent not too many, but imaginee for example 3D floorplan with many furniture. And after click on button it will rearange in different setup. Something like open space office vs clasic rooms. I want to animate transition betwen this 2 setups…

by user 869976161550217286

in this case of this wooden cabin, there is only roof, and second floor to be moved up in Y axis… but in future we need to show this 3D floorplans

by user 869976161550217286

OK thank you for your tips, I am going to learn Animator + AnimatorController + a Button component

by user 869976161550217286

How would you solve this in Unity / with your known workflow?

Hmm, I have to learn this…

by user 869976161550217286

I know how to do this in 3D studio max… just make 2 setups add keyframes to XYZ position and just put setup 1 in frame 0 ssetup 2 in frame 100 and thats it…It should work similar in unity

by user 869976161550217286

You just want to toggle between the two setups (not necessarily do it smoothly with an animation but just switch from A to B ?)

You can to the same with 2 keyframes in Unity :slightly_smiling_face:

Yes canbe an option. In 3D studio its also 2 frames, and all in between are interpolated…

by user 869976161550217286

but I have to learrn basics of animationg in unity now :slightly_smiling_face:

by user 869976161550217286

If this Animator + AnimatorController + a Button component is compatible with the rest of the needle scene and it will work in browser after build, its all what wee need at this moment. I know it will be usefull to learn typescript for future but its another big topic for me at this moment. I think it will be faster now to learn animator then to learn typescript from scratch.

by user 869976161550217286

to solve what I have described above

by user 869976161550217286

It will work :slightly_smiling_face:

but , anyway thank you very much for your time spent with me, I am noob in coding, but trying my best

by user 869976161550217286

thx forr your TS code, can be handy

by user 869976161550217286

No problem, thanks for asking :wink: We’ll add a sample for this kind of problem/solution