guides:tips-on-quaternion
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
guides:tips-on-quaternion [2020/04/22 19:10] – created vjraymon | guides:tips-on-quaternion [2020/04/23 18:44] – vjraymon | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Custom component : tips about quaternion ====== | ====== Custom component : tips about quaternion ====== | ||
+ | |||
+ | Since 1.5, Foundation allows to mod Custom component and links it to a fbx (see Exemple02) | ||
Assuming the local axis Y of the building is vertical (most cases), | Assuming the local axis Y of the building is vertical (most cases), | ||
- | a way to compute the cosinus (named | + | a way to compute the cosinus (named |
<code lua> | <code lua> | ||
Line 10: | Line 12: | ||
</ | </ | ||
- | Note: You can check that cosp*cosp + sinp*sinp is near 1 | + | Note: |
+ | |||
+ | 1) You can check that '' | ||
+ | |||
+ | 2) This can be used, for instance, to convert a local direction on XZ plane (local coordonates for " |
guides/tips-on-quaternion.txt · Last modified: 2021/02/23 11:57 by minotorious