Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create collidable 2D at runtime
#1
Hello all,

I'm looking for some information if what I'm trying to make is doable with curvy.

I want to create 2D splines at runtime, and instanciate smooth "pegs" along the spline. Similar to pegs in the game "peggle": https://i.imgur.com/rmJCjGK.png

The collider of those pegs should also be created in such a way that it generates a smooth surface so that a ball can roll over it.

Is this possible with Curvy? If yes, can I somebody give a hint how to go about it?
Reply
#2
Hi,
  1. Creating a 2d spline at runtime: doable. You can see it at work in the webGL demo, and if you bought Curvy, the demo's source code is part of the asset, in the Curvy Examples folder.
  2. Instantiating objects along a spline: doable. Same as point 1. You can also generate extruded meshs on the the full spline or part of it. This is also part of the demo.
  3. Smooth colliders: doable. As long as the instantiated object or the extruded mesh is smooth, the mesh collider will be smooth too.
Sorry for taking some time to answer, have been busy with the current sales.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
Heart Create beautiful curves ShiroeYamamoto 3 13 03-26-2024, 06:25 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
Wink Modifying Splines at Runtime artsung 1 7 01-30-2024, 09:40 AM
Last Post: _Aka_

Forum Jump: