Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: koop4 on March 06, 2014, 06:33:16 AM
-
Hi all,
I'm trying to manage width & Length of my terrain with PM.
have a FSM attached to it, but it's not clear to my how to modify this component variable.
I've tried to work with the "get component" setting the object as "script" but wit no results.
Thanks in advance
Rob
[OT] feel free to correct my eng! (i am trying to improve it too)
-
Hi,
I don't think you can do that actually. what would be the purpose of this? you do mean a "unity" terrain right?
bye,
Jean
-
I dont think you can edit the height/width resolution at runtime as this would clear the heightmap and flatten it. You might need another tool like RTP or something.
-
1) you do mean a "unity" terrain right?
2) what would be the purpose of this?
1) yes
2) I was thinking to make a dynamic level generation, where a UnityObject's FSM generates every level's object.
So i could use a pattern to generate the level dinamically, taking width/length/height of various object from a db.
Rob
-
You should be able to just store the terrain's you create in the project, then create them at runtime. Haven't tried this myself though.
Otherwise, you might want to look into getting some terrain stitching tools or at least an extended terrain asset as this is something that could get pretty complicated, especially at seams. Generating random levels isn't that bad, but terrain can get hairy.