30114
30114

Reputation: 159

Unity and Vuforia: draw object trails

I'm looking for a solution to draw Unity3D trails (using Trail Renderer) when moving the object with Vuforia marker.

Let's say I have a box on top of the marker and whenever I move my marker I'd like my box's trail to follow the object (curved line). So far, my trail is a straight line, most probably because trail attached to the box object calculates object's local coordinate system.

Any ideas how to solve this? If this isn't doable with Vuforia+Unity, any ideas where to search for a better combination?

Thanks a lot!

Upvotes: 0

Views: 603

Answers (2)

30114
30114

Reputation: 159

Thanks a lot Vancete. You were right. I should change World Center Mode from "First Target" to "Specific Target"

Upvotes: 0

Vancete
Vancete

Reputation: 184

The thing is that in Vuforia the GameObjects attached to the markers are not moving at all, instead of that, is the camera who's moving arround the GameObject.

Start checking that, probably it's the reason why you are not getting the trails working properly.

Upvotes: 1

Related Questions