Skip to content

Commit

Permalink
fix axes helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Mar 11, 2024
1 parent c2dc274 commit 73d0e3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ada/visit/rendering/pygfx_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def __init__(self, size=1.0, thickness=2):
arrow_head.local.position = pos
# offset by half of height since the cones
# are centered around the origin
arrow_head.local.position += arrow_size / 2 * la.vec_normalize(pos)
arrow_head.local.position = (
arrow_head.local.position + arrow_size / 2 * la.vec_normalize(pos)
)
arrow_head.local.rotation = la.quat_from_vecs((0, 0, 1), la.vec_normalize(pos))
self.add(arrow_head)

Expand Down

0 comments on commit 73d0e3f

Please sign in to comment.