Hi,
anyone knows if there is a way to reflect model of an object (ceiling) via script? (i know absolutely nothing about modelling, don't have a program, just need 1 reflection, so best way doing via script...or i'll look for some other solution)
Thank you
Script to reflect object
Re: Script to reflect object
Don't know what you mean by "reflecting"? Do you mean to have a mirrored image ob a model on the ceiling??
Re: Script to reflect object
You can't. You can rotate models in their asset definiton, and you can translate/rotate/scale the entire GameObject setWorldRotation(), but there is no way to flip anything since that is a change in the actual geometry of the mesh; there's a reason "flip" is separated from rotation options in image/model editors. Try to mirror your keyboard around one axis IRL, it's impossible. You would have to make a separate, flipped version of the mesh.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Script to reflect object
I meant, flip. ^_^
I'll find another way around then.
Thank you.
I'll find another way around then.
Thank you.
Re: Script to reflect object
Are you trying to have what is on the ceiling reflect from water? If so, you could just place a copy of the ceiling object inside the water, then show/hide it based on floor triggers. So, for example, when someone approaches the water there are floor triggers that create a copy of the ceiling object inside the water, and when someone jumps in the water there are other triggers that remove it (or the original floor triggers remove it OnDeactivate).
Probably a cheesy work around, but could be fun and easy way to achieve this
Probably a cheesy work around, but could be fun and easy way to achieve this

Re: Script to reflect object
Thank you.Azel wrote:Are you trying to have what is on the ceiling reflect from water? If so, you could just place a copy of the ceiling object inside the water, then show/hide it based on floor triggers. So, for example, when someone approaches the water there are floor triggers that create a copy of the ceiling object inside the water, and when someone jumps in the water there are other triggers that remove it (or the original floor triggers remove it OnDeactivate).
Probably a cheesy work around, but could be fun and easy way to achieve this
I'm creating a level using mine set but i need height of 4 tiles. Unfortunatelly is not possible with actual tile set so i had to us what i have. Now for exit that level i need a "hole" (with wall on top of it) and find some problems with models (that have a sharp cut) so i need to flip one to make 2 sides (of 2 models) match to make a round model.
...unfortunatelly, in the end, those 2 levels will have some graphic issue, i can't solve them...
btw thank everyone