SetRotation gives Movable strange behavior

0
0

So I’m applying a rotation to my objects, and that works well. (Thanks for adding that capability.) If the rotation is zero on Z axis, dragging an object works as expected. But when I set, for example, 45 as the Z rotation, clicking the object to drag it instantly causes it to jump. Dragging still works but the grip point is not where I clicked it.

Any idea as to why it would do that?

Thanks!

-John

  • You must to post comments
0
0

Use the attached file instead.

  • John Nagle
    Luca, that works perfectly….thank you so much (again). Enjoy your holiday! -John
  • You must to post comments
0
0

That’s because the object’s coordinates are rotated while the document (pointer) are not. Add the attached patched js to your project under a folder named “Platform” and set compilation to Embedded Resource. In AssemblyInfo.cs uncomment [assembly:WisejResources].

This patch fixes the MMovable class to consider the offset between the real and rotated coordinates. Will log and should be changed in Wisej soon.

  • Luca (ITG)
    Works for me. Can you put it on your test site with debug=”false” in web.config?
  • John Nagle
    I published it…can you tell me where to put the debug=”false”? Sorry, I’m a noob.
  • Luca (ITG)
    Sorry I meant debug=”true” in web.config. now you have false.
  • John Nagle
    It’s done.
  • John Nagle
    By the way, it jumps even with no rotation now.
Showing 2 results
Your Answer

Please first to submit.