st/prober: Name the tracking origin and make offset editable

This commit is contained in:
Jakob Bornecrantz 2020-05-09 12:26:07 +01:00
parent 3928c5041a
commit 694d978e25

View file

@ -302,10 +302,11 @@ p_tracking_init(struct prober *p)
fact->origin.offset.position.y = 1.0f;
fact->p = p;
snprintf(fact->origin.name, sizeof(fact->origin.name),
"PSVR & PSMV tracking");
u_var_add_root(fact, "Tracking Factory", false);
u_var_add_vec3_f32(fact, &fact->origin.offset.position, "offset.pos");
// u_var_add_vec4_f32(fact, &fact->origin.offset.orientation,
// "offset.rot");
u_var_add_pose(fact, &fact->origin.offset, "offset");
// Finally set us as the tracking factory.
p->base.tracking = &fact->base;