This maybe a simple problem:
How to determine that the moving window arrive the desired position?
for example: pos(x, y, z) moving to desired_pos(x', y', z')
I can not find a good method, can you help me, please.
How to determine that we arrive the desired position?
Moderators: CEGUI MVP, CEGUI Team
-
- Quite a regular
- Posts: 60
- Joined: Tue Oct 28, 2008 10:46
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: How to determine that we arrive the desired position?
Firstly, there is no 'z' component. Aside from this, how are you moving the window?
Rejecting the base case of 'since you're setting the position you should already know when it's reached a certain point', and assuming that perhaps you're wanting pixel only positions, you can probably use CEGUI::Window::getUnclippedOuterRect or some such thing and compare with the target position.
CE.
Rejecting the base case of 'since you're setting the position you should already know when it's reached a certain point', and assuming that perhaps you're wanting pixel only positions, you can probably use CEGUI::Window::getUnclippedOuterRect or some such thing and compare with the target position.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 4 guests