Lookat to camera only one side

Help me please ! How to rotation an object into the camera with only one side? (Unity Line Renderer)
https://playground.babylonjs.com/#DMIA2P#10

This only works if the parent rotation has a Vector.Zero()

uncomment

Will the rotate function help you?

https://playground.babylonjs.com/#DMIA2P#11

You can choose to rotate around a specific point or rotate the object in world or local space

Not working

What exactly are you trying to achieve?

How Unity Line Renderer

If you want to explain or provide an example, I will be happy to help, if not, maybe someone else can.

I’ll record a video now

Here is how I would do it:
https://playground.babylonjs.com/#DMIA2P#18

4 Likes

WOW ! Its work ! Thank you very much !

1 Like

parent position is not taken into account (

[solution] v.addInPlace(parent.position);
https://playground.babylonjs.com/#DMIA2P#19

2 Likes