basilisk-engine 0.1.31__py3-none-any.whl → 0.1.33__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of basilisk-engine might be problematic. Click here for more details.

basilisk/nodes/node.py CHANGED
@@ -293,17 +293,13 @@ class Node():
293
293
  relative = glm.inverse(self.model_matrix) * child.model_matrix
294
294
  position = glm.vec3(relative[3])
295
295
  scale = glm.vec3([glm.length(relative[i]) for i in range(3)])
296
- rotation = glm.quat_cast(glm.mat3x3(*[glm.vec3(relative[i]) / scale[i] for i in range(3)])) # TODO ensure that these are the correct calculations
296
+ rotation = child.rotation * glm.inverse(self.rotation.data)
297
297
 
298
298
  # compute relative transformations
299
299
  if relative_position or (relative_position is None and child.relative_position): child.relative_position = position
300
300
  if relative_scale or (relative_scale is None and child.relative_scale): child.relative_scale = scale
301
301
  if relative_rotation or (relative_rotation is None and child.relative_rotation): child.relative_rotation = rotation
302
302
 
303
- print(child.relative_position)
304
- print(child.relative_scale)
305
- print(child.relative_rotation)
306
-
307
303
  # add as a child to by synchronized and controlled
308
304
  if self.node_handler: self.node_handler.add(child)
309
305
  child.parent = self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: basilisk-engine
3
- Version: 0.1.31
3
+ Version: 0.1.33
4
4
  Summary: Python 3D Framework
5
5
  Home-page: https://basilisk-website.vercel.app/
6
6
  Author: Name
@@ -60,7 +60,7 @@ basilisk/mesh/narrow_bvh.py,sha256=29VLfEKa6BE6UDY1HJWlcM5TMR7ayg4loZ6S61PpLJM,4
60
60
  basilisk/mesh/narrow_primative.py,sha256=Dlw0jnFewPwAvT0Ap9IxAh05tgjZAdjAyuiRy1DXOm4,930
61
61
  basilisk/nodes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  basilisk/nodes/helper.py,sha256=GZ2-TY_4PDEfxBGp7ddktYoDDMOogPMbDeRPqsrPu1A,2069
63
- basilisk/nodes/node.py,sha256=Hs-x7jpSpl1lKmGFs4UJnh72E2S1cDOyuTctSytIRDU,32717
63
+ basilisk/nodes/node.py,sha256=n9aJv0HP16rjTtZnYqH9YM2ZvUo8Edfq0M9ukkM-jzw,32508
64
64
  basilisk/nodes/node_handler.py,sha256=IFEcEefVzlMbYR0O6OtM2qPcoZFrLYugiwAqEQMoTqo,4106
65
65
  basilisk/particles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  basilisk/particles/particle_handler.py,sha256=PtWn8-qwfkD0r8CXcATvDEFstrKG86KVBH0j1ybEv58,2928
@@ -103,7 +103,7 @@ basilisk/shaders/particle.frag,sha256=JXhPDvgd7JDw0-PCZtCOjHTTw2DMeeSaBvTr5fHuIy
103
103
  basilisk/shaders/particle.vert,sha256=bJv3hsWjWYb-g0mgdCV9eH-TVRwpCzhA3wsgSUI3WEM,2943
104
104
  basilisk/shaders/sky.frag,sha256=KG8ablNdaJ5E2Gf1ZpfP3ih252fY8ZNjign_fwjN6V4,169
105
105
  basilisk/shaders/sky.vert,sha256=oAnrknEgsd9MawE_zx8P0u9nUSFEBYBg5ykBmWpqZ_g,332
106
- basilisk_engine-0.1.31.dist-info/METADATA,sha256=3wnyvwda50LHbVl5j7qEnHI41KdwgRM12U96Iz01uGM,1261
107
- basilisk_engine-0.1.31.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
108
- basilisk_engine-0.1.31.dist-info/top_level.txt,sha256=enlSYSf7CUyAly1jmUCNNGInTbaFUjGk4SKwyckZQkw,9
109
- basilisk_engine-0.1.31.dist-info/RECORD,,
106
+ basilisk_engine-0.1.33.dist-info/METADATA,sha256=HMGfnZbmGPfH15M21oHCFGC7hg_X575f0RbU2_AJyUQ,1261
107
+ basilisk_engine-0.1.33.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
108
+ basilisk_engine-0.1.33.dist-info/top_level.txt,sha256=enlSYSf7CUyAly1jmUCNNGInTbaFUjGk4SKwyckZQkw,9
109
+ basilisk_engine-0.1.33.dist-info/RECORD,,