// _core.TargetMove += TargetMoveMethed;
Hello,
Is this thread posing a question? It is true that zCore6 no longer employs an event to signal head or stylus movement. I will assume that you are asking for an alternative solution.
The most common way to determine whether a target is moving will be to keep track of its position from the previous frame. The target’s current position will never be the same as the position it was in on the previous frame if it is tracked.
If you would prefer a more explicit signal, here is another alternative.
using System;
using UnityEngine;
using zSpace.Core;
using zSpace.Core.Interop;
public class TargetMoveSignals : MonoBehaviour
{
private IntPtr _headTarget;
private IntPtr _stylusTarget;
void Start()
{
ZPlugin.GetTargetByType(
ZProvider.Context.NativePtr,
zSpace.Core.Sdk.ZTargetType.Head,
0,
out this._headTarget);
ZPlugin.GetTargetByType(
ZProvider.Context.NativePtr,
zSpace.Core.Sdk.ZTargetType.Primary,
0,
out this._stylusTarget);
}
void Update()
{
bool headVisible = false;
bool stylusVisible = false;
ZPlugin.IsTargetVisible(this._headTarget, out headVisible);
ZPlugin.IsTargetVisible(this._stylusTarget, out stylusVisible);
if(headVisible)
{
Debug.Log("Head is visible");
}
if(stylusVisible)
{
Debug.Log("Stylus is visible");
}
}
}
Why suddenly the case can not run, report error this, no 3D effect and no rays, before there is, suddenly no
Look for the problem process to find this empty, guess this place should not be empty bar
I changed a computer can operate normally, are empty works into Zcore 6.0,That’s why
The tracking server might have crashed. Does it continue to work again after rebooting the system?
If this is a persistent problem, please convey a means for me to reproduce the issue. Sample projects work best.
Please create new topics for unrelated issues.