#Why the camera captures exactly the legs, regardless of the model ?

1 messages · Page 1 of 1 (latest)

visual stump
#

here is an example of what i want to do #1095078071012442193 message

narrow tree
#

With the setup you have here you'll have two components that try to write the position of the object:

  • SmoothFollow: interpolates the GameObject you put it on to the Target object that you assign
  • OrbitControls: does take the camera object that you put it on and makes it controllable by mouse and touch input.

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)
visual stump
narrow tree
#

Yes sure, you can create custom components: https://engine.needle.tools/docs/scripting.html

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development, and can be deployed anywhere. It is flexible, extensible, and collaboration and XR come naturally. Needle Exporter for Unity bridges the Unity Editor and the web runtime. It helps you to export your assets, animations, lightmaps and so on to the web. It is...

#

Because the lookat constraint is set to this object (I guess in Constraint Settings it's also set to "Lock" ?)

visual stump
narrow tree
#

you can open and look at the code here for example:

visual stump
#

yeah ((

#

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 ?

narrow tree
#

What do you mean by "I cant write like normal three.js using typescript" ? You can do exactly that still

narrow tree
visual stump
narrow tree
#

You can

#

When you use components then this.gameObject is just your three.js Object3D (or mesh or...)

visual stump
#

Thanks

narrow tree
#

I guess you're more familiar with three.js then? 🙂

visual stump
visual stump
#

preferably the project itself

narrow tree
#

The code looks something like this (it's not the latest version but should perhaps help you getting started). I can not share the project

#

You need to modify the imports to use it in your own files (all should be importable via import { ... } from "@needle-tools/engine")

visual stump
#

Thanks!