Search the Community
Showing results for tags 'canvas'.
-
[SOLVED] Maybe bugs in canvas.getLineIntersection() and canvas.getPolygonIntersection()
cinetec_tech posted a topic in Bug Reports
Hi, When I add lines into canvas, there are two ways to setup the position of the points. First, set local coordinate to line point through 'canvas.addLinePoint()', then set transform to canvas through 'canvas.addTransform()'; Second, calculate screen position=transform*local coordinate, then set screen position to line point through 'canvas.addLinePoint()'. The first way, I cannot get intersection with lines through 'canvas.getLineIntersection()'. The second way, it works. There are two examples in attach files. 'canvas_03' shows the first way. 'canvas_04' shows the second way. canvas_03.cpp canvas_03.world canvas_04.cpp canvas_04.world- 4 replies
-
- canvas
- LineIntersection
-
(and 1 more)
Tagged with:
-
[DUPLICATE] one question about "canvas.getLineIntersection"
cinetec_tech posted a topic in UnigineScript
Hi, I need to get the line ID when I double-click the line, but canvas.getLineIntersection always returns -1. Here is an example I modified it from the sample "canvas_02". What's wrong with my code? More detailed description here: https://developer.unigine.com/forum/topic/2950-maybe-bugs-in-canvasgetlineintersection-and-canvasgetpolygonintersection/ canvas_03.cpp canvas_03.world -
Hey all, So I'd like to create a plugin that imitates behavior like that of the resource editor, whereby I have a series of tabs with 3D windows in them at Vector.zero. Not in my world, but an instanced 3d space whereby I can load and configure static mesh objects before they're loaded into the scene. Can a canvas widget object achieve this? Or will I end up using a PlayerSpectator in conjunction with controls?