Original Post
🔒 Locked
Attach Object...
Advertisement
Is tis Open GL or NeHe specific?
You can create a pointer in Door that you will assign teh window address. Now the door has access (thus connected?) to the window. Vice-versa if necessary.
You can create a pointer in Door that you will assign teh window address. Now the door has access (thus connected?) to the window. Vice-versa if necessary.
Well, first of all, translate to the point on which the doors/windows are connected to the walls,
then rotate (as that's probably what you want), then translate to the point the origin of the door/window should be and draw the door/window.
Am i clear?
[edited by - Tree Penguin on March 5, 2004 10:37:32 AM]
then rotate (as that's probably what you want), then translate to the point the origin of the door/window should be and draw the door/window.
Am i clear?
[edited by - Tree Penguin on March 5, 2004 10:37:32 AM]

red=door/window origin, green=the point where the door/window is connected to the wall.
1. draw the wall
this is per moving object:
2. translate (move) to the connection point
3. rotate a certain amount (so the door/window is open, not closed)
4. translate the amount (door/window origin - connection point)
5. draw the door/window
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement