Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conveyor Belt System
#1
I'm trying to build a conveyor belt type system. I'm struggling with getting it right.

I basically want to follow the spline, with a perpendicular offset. This is so items travelling round the outer edge of a curve will travel faster than item on the inner side of a curve.

Im currently finding the nearest TF when the object lands on the conveyor belt, but just following the tangent isnt good enough. Can anyone give me some pointers?

Here is a snippet of what im doing...
http://hastebin.com/busajuhequ.avrasm
Reply
#2
Guess I already answered by mail (that was you, right?). I'd simply make the object a child of the GameObject holding a regular spline controller, then offset it by changing the child's transform.

PS: TF means "Total Fragment" Wink
Reply
#3
Hey Jake, Yes it was me you emailed. I bought curvy anyhow, as i think i can put it to good use.

I dont think i can make the object a child of the GameObject holding the spline as its a rigid body and i believe re-parenting rigid bodies isnt a good idea.

Ive made some progress today, but i still feel my implementation isnt quite right. take a look if you fancy.

https://gist.github.com/samsamm777/a3c1d6c7ad81a0607806

The problem with this implementatin is that when objects are traveling on the inside of the curve, they 'move backwards' if the curve is tight. im finding it tricky to resolve this
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Isolating Package to include only Spline system nichstkann 3 7 12-15-2023, 12:39 PM
Last Post: _Aka_
  Unity 2021.2 Overlay System nehvaleem 5 17 12-15-2023, 10:09 AM
Last Post: _Aka_
Lightbulb Junction & Connection Navigation System Design SAMYTHEBIGJUICY 4 13 11-27-2023, 01:04 PM
Last Post: _Aka_
  Does Curvy has gameobjects pooling system function? Chanon 7 13 09-07-2023, 12:43 PM
Last Post: _Aka_

Forum Jump: