Hi Everyone,
I’m working on a Unity game using the Kinect in Unity, which is powered by Zigfu. In one of the Zigfu sample scenes they have a character called blockman that imitates the player movement on the screen. I am using this model and the scripts that go with it but need to know how to center the blockman in the game.
Once the game starts the model moves away from the start point and I need to know if there is away to set constraints on where he moves and what position he is in?
Any and all help would be appreciated
1 Answer
1
The model moves or the camera moves? you must store the blockman prefab in an empty unity game object (position coordinates at 0,0,0). You also need a camera focused on the blockman prefab with the appropriate script components (see the example scenes in zigfu for script references). I just began using these myself, good luck with your work!As far as movements for the avatar (assuming “movement” refers to player’s position in userradar rather than avatar positions), I have just begun that and I have found this link: c# - Interacting with avatar using Kinect and Unity - Stack Overflow
but I think this reference will only accomplish the latter (though also may be a great link for using Kinect in Unity).