Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pre-buy questions
#1
Question 
since it is in madness sale, I would like to buy this package, that I put on my preferred one.

1) Mainly I develop for UWP platform. Does it works without any issue or limitations?

2) I'm delveloping a slot-car game. I alredy have a working engine but I'm open to test other solutions, like Curvy. Each track is a graph where each segment is a list of points. May I use this data set with curvy? Linking "splines" togheter so that the car can move along the graph, changing the path on demand when a split point is reached?
How does it works with rigidbody? In my case I have a car with a paddle in the middle of the front wheels, and it should be this paddle to follow the spline and forcibg the car to stay inside the slot, but the car should remain free to rotate around the y axis, and with physic enabled. Also colliding with other cars accordingly. May Curvy handle this scenario? I saw the train vagon demo.. And it was impressive, but I dont know how it was done under the hood.

thanks,
Cristiano
Reply
#2
Hi Christiano,

1.) Curvy is completely UWP compatible and there aren't any issues we're aware of.
2.a) You can connect splines and your controllers get a callback when a connection (or control point in general) is reached.
2.b) The train example uses SplineControllers for both the wheel axis and the waggon.

In short, Curvy doesn't have an official rigidbody controller. The reason is that we don't think it's possible to provide one that works well for most scenarios. There are way too much options how a rigidbody should interact with splines, scenery and other objects. Instead of a readymade controller we added some example custom controllers that showcase ways of handling splines and we took care that controllers are easily extendable. So you inherit your own controller from the builtin ones, override one or more methods and make them work the way you like.

In general, Curvy controllers work by advancing on a spline (or a Curvy Generator path/volume), get the corresponding position, tangent(direction) and up-vector and apply that to their GameObject's transform. So for rigidbodies several solutions are possible, e.g.

- Separate your RB object from the controller and drag the RB towards the controller or apply force to it's location
- Like above, but use joints
- Don't use a SplineController at all, but instead use Curvy API directly to find the nearest spline position to your RB and then use curve data to modify your RB's physics.

Hope that helps,
Jake
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scene 51 questions lukasynthetic 3 12 06-22-2022, 04:12 AM
Last Post: _Aka_
  Spline editing questions giollord 5 150 12-04-2021, 02:24 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 1,261 06-09-2021, 12:42 PM
Last Post: _Aka_
  Controller speed questions Lupp_ 6 1,863 01-20-2021, 09:20 PM
Last Post: _Aka_

Forum Jump: