- Home /
Making a deform-able ground game surface
Hi All
I am trying to make an arena where the surface would start initially flat, but could be deformed based on player action. I want the starting slab of ground to stretch and behave as a finger pushing down creating a pit or a hill depending on whether the force is applied on the top or bottom.
I am basically looking for non rigid body action for my ground, What would be a good way to approach this?
Thanks in advance.
If I understand it correctly you want to displace the surface based on touch input. If so, create a flat mesh with subdivisions (too many can be very laggy, too few look bad). When the player clicks on the mesh, find where the player clicked and displace the vertecies based on the distance of the vertex to the click.
@OrbitGames O$$anonymous$$, when you say too many subdivisions would be laggy, define to many?
There is no exact number to give because it's based on hardware. You'll just have to first figure out how many you need to make it look good and work down from there. I can almost guarantee you you're going to have to sacrifice looks for performance especially if you're on a mobile device.
Your answer
Follow this Question
Related Questions
Same script not working on next level 0 Answers
Transport objects between scenes. 1 Answer
Import assets into scene from text file list. 1 Answer
Scene not playing 0 Answers
How do I get the transforms of all the objects in my scene ? 2 Answers