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
  Batch processing of the Generator to create a bunch of Meshes HatraE 3 242 10-21-2020, 11:21 AM
Last Post: _Aka_
  Subdivide in runtime? Spectra 3 390 10-07-2020, 08:28 AM
Last Post: p30better
  Frequent runtime updates of Curvy Generator for simulating plant growth using Splines h4ck3rd4wg 6 711 10-02-2020, 07:57 PM
Last Post: _Aka_
  Making long roadmesh runtime migeg 19 2,519 08-17-2020, 11:04 PM
Last Post: migeg

Forum Jump: