here is an example of what i want to do Discord
by user 1101049107931480066
here is an example of what i want to do Discord
by user 1101049107931480066
With the setup you have here you’ll have two components that try to write the position of the object:
If you want to combine the two then try putting the camera in a parent and add the SmoothFollow to the parent (and remove it from the camera)
- Camera Parent (SmoothFollow)
- Camera (Camera, OrbitControls)
Is there any way I can change this in the code?
Create your own script and work with the camera.
by user 1101049107931480066
Yes sure, you can create custom components: Needle Engine Scripting | Needle Engine Documentation
Because the lookat constraint is set to this object (I guess in Constraint Settings it’s also set to “Lock” ?)
But is there an example of working with the camera when using scripting?
by user 1101049107931480066
you can open and look at the code here for example:
yeah ((
by user 1101049107931480066
Where can I find such a prototype?
by user 1101049107931480066
and I can write a script under Three.Js, and then process it. I was told that needle - tools is Three.Js, but with convenient abstractions. That is, I can’t write like normal Three.Js using typescript ?
by user 1101049107931480066
What do you mean by “I cant write like normal three.js using typescript” ? You can do exactly that still
A controller like that will be part of the core components eventually. It’s not released yet.
Here’s a minimal example using move to click: Needle Engine - Move Camera onClick - StackBlitz
that is, I can write tasks as I usually write in Three.js ?
by user 1101049107931480066
You can
When you use components then this.gameObject
is just your three.js Object3D (or mesh or…)
Maybe this helps you: Scripting Introduction | Needle Engine Documentation
Thanks
by user 1101049107931480066
I guess you’re more familiar with three.js then?
I am an unity developer😅
by user 1101049107931480066
can you give me a test controller? I want to poke
by user 1101049107931480066