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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Mesh Node, Make Static Options rickgplus 1 123 01-23-2025, 10:12 AM
Last Post: _Aka_
  Set Volume to the Volume Controller at Runtime pako88 2 81 04-08-2024, 03:26 PM
Last Post: _Aka_
Heart Create beautiful curves ShiroeYamamoto 3 85 03-26-2024, 06:25 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 151 02-24-2024, 10:43 AM
Last Post: _Aka_

Forum Jump: