Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: koop4 on March 06, 2014, 06:33:16 AM

Title: How do i edit terrain width/Length with PM
Post 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)
Title: Re: How do i edit terrain width/Length with PM
Post by: jeanfabre on March 06, 2014, 07:36:49 AM
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
Title: Re: How do i edit terrain width/Length with PM
Post by: Lane on March 06, 2014, 07:37:04 AM
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.
Title: Re: How do i edit terrain width/Length with PM
Post by: koop4 on March 06, 2014, 08:09:51 AM
Quote
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
Title: Re: How do i edit terrain width/Length with PM
Post by: Lane on March 06, 2014, 09:14:51 AM
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.