WIP with fixing basis vectors
This commit is contained in:
parent
641af92484
commit
77c1e25158
2 changed files with 2 additions and 8 deletions
|
@ -10,10 +10,4 @@ func _on_pos_quat(tracker_data : Dictionary):
|
|||
if tracker_data['tracker'] == tracker_name and tracker_data['sensor'] == tracker_sensor:
|
||||
self.global_position = tracker_data['position']
|
||||
var rotation := tracker_data['rotation'] as Quaternion
|
||||
|
||||
rotation.x *= -1
|
||||
rotation.z *= -1
|
||||
self.global_basis = Basis(rotation.normalized())
|
||||
|
||||
#print(tracker_data)
|
||||
|
||||
self.global_basis = Basis(rotation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue