This commit is contained in:
2024-09-30 21:12:20 +01:00
parent b7d949c035
commit 74b518e10b
+16
View File
@@ -0,0 +1,16 @@
module Dodge.Item.Orientation
where
import Dodge.Data.ComposedItem
import Geometry.Data
import Dodge.Data.Item
import qualified Linear.Quaternion as Q
orientChild :: Item -> (Point3, Q.Quaternion Float)
orientChild itm = case _itType itm of
HELD {} -> (0,0)
_ -> (0,0)
orientByLink :: Item -> ComposeLinkType -> (Point3, Q.Quaternion Float)
orientByLink itm _ = case _itType itm of
_ -> (0,0)