This project is read-only.

Limit marker movement

Oct 25, 2011 at 8:11 PM

Hi, I have a question, maybe someone knows....

When I hold the marker, I need the object that overlaps it to move only in one axis. For example, I move the marker in any direction, but the objects only takes in account the movement along the X axis (could be any axis, just an example).

Does anybody know how to do this?

Thanks in advance.


Oct 26, 2011 at 2:50 AM

Just don't attach your GeometryNode to MarkerNode, but attach it to your TransformNode and assign it's Translation based on the info you get from MarkerNode. Don't forget to attach MarkerNode to the scene.RootNote, otherwise, it won't be updated.


Oct 27, 2011 at 7:18 PM

Thanks a lot Ohan, I will try it out this weekend.