Obi Official Forum
Help 2D End Prefab - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help 2D End Prefab (/thread-752.html)



2D End Prefab - AAFever - 18-11-2018

Hi! Gran sonrisa  I'm trying to use Obi Rope in a 2D Unity environment.



What I want to do is attach a GameObject prefab with a Sprite Renderer on it to the Obi Rope's EndPrefab variable.

So I did, but the problem with that is it isn't oriented towards the camera visually.

So I created a GameObject child to the prefab I stuck to EndPrefab where I then moved the Sprite Renderer to and rotated it manually.

This had some promising results until I played the Scene.

As the rope rotates around in 2D space (X, Y), the EndPrefabInstance rotates around in the 3rd Dimension like a drill.

I want to keep the Sprite facing towards the camera at all times and not rotating like a drill at the end of the rope.


I have attached a screenshot example to illustrate what I mean,


Has anyone solved this problem, or does anyone know of a way to solve this?


Thank you for your time and assistance!