Hi i’m trying to use meshes instead of line renders to draw the stylus and its head/tip
however when i move the move the mesh being used to visualize the stylus to the position where the line render would have been it causes a strange effect to happen with the mesh i’m clicking on with the stylus.
what happens is once i click on the object ii wish to rotate and move i cant let go of it with the stylus.
here’s the code i’m using
Vector3 start = stylusPosition; Vector3 end = stylusPosition + (stylusDirection * stylusBeamLength); Vector3 scale = new Vector3(stylusBeamWidth, offset.magnitude, stylusBeamWidth); Vector3 position = start + (offset / 2.0f); beamCylinder.transform.position = position; beamCylinder.transform.up = offset; beamCylinder.transform.localScale = scale;
its almost as if using a mesh to visualize the stylus is interfering with the stylus ability to garb objects in the scene
can anyone give an example of how you should properly implement a custom stylus.
i like the one used in the zspace experience application and would like to implement something like that.