Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Stretch to end" for CreateGameObjects
#1
Hi, I want the player to be able to create walls by drawing splines. The wall spline must consist of many separate GameObjects because each GO detects collision for valid placement:

[Image: doGNvIs.gif]

There's two issues I could use some help with:

  1. I want to be able to deform the GO's, especially so they can occupy the entire length of the spline, like the "stretch to end" feature of Deform Mesh. It is easy to deform the meshes (thanks Curvy 8), but the GameObjects must also scale so that their collision detection matches the size of their mesh.
  2. At the end of the gif, you can see the red (invalid) walls flickering randomly. IĀ assume that the object pooler is switching the Gameobjects around as I resize the spline.

I wanted to ask around for some suggestions for strategies to address these. I am still learning to use Curvy, and I get the feeling that I am missing some more elegant ways than what I can imagine with my current knowledge.

Thanks in advance.
Reply


Messages In This Thread
"Stretch to end" for CreateGameObjects - by Anubis132 - 05-29-2022, 12:45 AM

Forum Jump: