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
  How to assign a Volume to a controller at runtime using API _Aka_ 0 4 07-19-2022, 11:17 AM
Last Post: _Aka_
  Connect two spline at runtime Doomchecker 2 12 05-18-2022, 04:12 PM
Last Post: Doomchecker
Exclamation Runtime error when using Curvy Generator with Game Object Deform studentloan 3 13 04-22-2022, 09:00 PM
Last Post: _Aka_
  How to create gaps in spline mesh? linkinballzpokemon 1 5 04-09-2022, 12:29 PM
Last Post: _Aka_

Forum Jump: