Npm not found / nodejs

and how would I do the same for the spatial controls i downloaded

by user 263967078346653697

im sorry but im a total noob with anything js/ts

by user 263967078346653697

They have a demo linked there

You’d go into your webproject folder with a terminal or commandline and run npm install spatial-controls to add the package.
Then you create a new Needle typescript component. You can check the https://docs.needle.tools for references. The rest is basically just looking at the docs of spatial controls and exposing some variables

ye i installed the spatial controls thing and created the ts component

by user 263967078346653697

but i have no idea how to expose

by user 263967078346653697

and it doesnt look like it works on mobile :rip:

by user 263967078346653697

It worked for me :slightly_smiling_face: what do you mean?

Expose: see Script Examples | Needle Engine Documentation

or Needle Engine Samples for more examples

but are there any examples on adding wrappers for custom plugins?

by user 263967078346653697

im aware of these docs looked through

by user 263967078346653697

What examples are you looking for specifically? You can also look at our builtin components as reference by clicking on the blue link:
image.png

uhm… yes looked through that as well.

by user 263967078346653697

but as i looked it, i cant tell what plugin it uses to wrap

by user 263967078346653697

and how i could recreate it with spatial controls…

by user 263967078346653697

oh wait

by user 263967078346653697

i was looking in orbitcontrols.cs

by user 263967078346653697

not ts

by user 263967078346653697

okay so umm how would i connect the cs component with the ts?

by user 263967078346653697