New project need HELP
i'm working on big project i need help in a lot of things
first i need to move parts with mouse and assemble them to each other so i tried to make snap function like in 3d's programs but i can't get it so can any one help me how to get 2 objects aligned when they r close |
You could keep track of both objects' positions. Once they are in a certain range of eachother set one to be the parent of the other and set the child's position so it has the correct offset to appear aligned. Then when you move the parent object the child will move with it.
|
thats wot work for me because i wanna align them but in the same time allaow user to move it along axis
i tried to draw a line using vertex commands but i cant get its position so if you have onther idea how to do this pls tell me thx |
Sorry, I'm not sure I understand your question
|
Quote:
and thx again |
If you want to move your object with the mouse along just the x-axis you could either translate mouse movement into object movement with something like this
Code:
#Disable mouse navigation Code:
#Disable mouse navigation |
All times are GMT -7. The time now is 09:07 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC