Author Topic: Wrapped ScrollView with Spring Joints  (Read 2519 times)

jdawg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Wrapped ScrollView with Spring Joints
« on: May 11, 2015, 08:26:33 PM »
Hi,

I'm new to NGUI & Unity. Please be patient.   :-\

In my 2D project I have a Scrollview with empty planes that loops seamlessly. The end product should look like a car garage where you can drag and swipe through the different cars.

To create this effect I have attached a spring joint between one of the clear scroll view planes and a 2D simulated car. When the user drags the scrollview, the car rolls with it naturally.

The problem I am having is that the scrollView wraps and the content is culled. In order for the car to roll on the ground and look realistic it could not be a child of the scrollview. As a result, the car does not loop through with the scrollview content and the spring joint essentially breaks.

How can I get my car to wrap with it's attached spring object? Is there a better way to do this? I would ideally like to have the car as a child of the scrollView items but then it will not roll and bounce like a real car.

Thanks for your help.