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
bt = GetBodyTransform(target)
r = QuatAxisAngle(TransformToParentVec(bt,Vec(0,1,0)),1)
ConstrainOrientation(target,0,bt.rot,QuatRotateQuat(r,bt.rot),1)
Using QuatAxisAngle It will give you a rotation around a specific axis you specify.
In my case this is up Vec(0,1,0) and each tick I rotate it by one degree.
This basically means it wont rotate on a global axis but only around your body you specify
Thanks for spending some time on this topic though ;)
can you tell me the best combo