How or what would a script look like to make it so this foliage moves when a player touches it?
The Wild West does this well. I believe they use AlignOrientation and AlignPosition within a Part
and put a Mesh
inside the Part
.
https://gyazo.com/79a82f72ba58c8c51d5eb0fc6a638738
If It were a MeshPart
, I think they’d weld it to the Part
and turn off CanCollide
. Each of the properties for Position and Align are as so for me:
And here’s the explorer tree if you want it, AnchorPoint being the anchored part and acts as the base while MovingPart is the unanchored part that moves when you touch it:
Alright thats really cool. Ill check it out and hit you up if it works.
I cant seem to get it to work. My puny brainpower struggles once more. Do you perhaps have a reference model or something I could borrow?
Sure, here it is.
We don’t use constraints and physics collisions, that’d be really bad with how much foliage we have and ruins the ability to have wind influencer forces. We just do it all with CFrame and displace based on point and radii pushers(basically invisible spheres). We lay out the foliage in a data structure similar to an Octree so you’re only updating what you need to
Hey, I love what you did with The Wild West foliage and was wondering if you don’t mind giving a bit more insight into some of those specifics you mentioned. Been experimenting for ages and can’t quite get it right, would love to be led in the right direction.