Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
pos = global position of the button to be placed
object = object on which to place button at
pos=(pos-object.getPosition()):reflect(object.getTransformRight())+object.getPosition()
pos=object.positionToLocal(pos)
after that pos can be inserted into button creation and it will be at correct spot.
I just wish when a player changes color/seat position, the Rotate Snap point would default to rotate accordingly to where the player is facing. Anyhow, thanks for the reply and suggestion.
Another thing you could do to ease your life would be to figure out the structure of saved object (I believe they are just JSON) and then to find out how snap points are defined within that file. With these two things, you could use a script in any language you prefer to generate a file for an object with snap points on it.