Hi,
I have a script that moves meshes uniformly around my screen, on one specific device I need to move one the meshes in a non uniform manner.
This can probably be done with a if else statement but I have no idea how to code it.
Kind of like this
if (mesh_name) { move mesh_name by X amount }
Any help will be appreciated.
Thanks in advance!
Just so I can understand what you mean, I need to see the script you have that “moves meshes uniformly”. It seems like you’re looking for this. I don’t understand your pseudo code at all. Just elaborating in general might help.
No matter now, I managed to work it out (Woo me! )
I just needed to know how to select the mesh really.
if ( gameObject.name == "TipMax" ) { transform.Translate(100, 0, 0); }