- Joined
- Jan 13, 2008
- Messages
- 2,302
- Reaction score
- 6
- Points
- 38
- Location
- Atlanta, GA, USA, North America
I'm working on my truss system, and the docking ports for the pallets are along the sides of the trusses (flat sides of regular hexagons, two sides pointing vertically). However, for some reason, I've got one docking port definition that when a vessel is docked, is rotated in a crazy manner, not consistent with other similarly-defined docking ports.
This is how it should look: https://dl.dropboxusercontent.com/u/8017682/Orbiter/GOOD.jpg
This is how it actually looks: https://dl.dropboxusercontent.com/u/8017682/Orbiter/BAD.jpg
and which I undock the pallet, it instantly snaps to this, before floating away on the correct directional vector: https://dl.dropboxusercontent.com/u/8017682/Orbiter/STILLBAD.jpg
With dbeachy1's help, I boiled down my docking port definitions to only this. To be clear, this is the ONLY call to CreateDock found anywhere in my code right now.
When I do have other docking ports however, they use the same numbers, only with changes to the signs of the coordinates, DIR and ROT vectors, and a change in the X-value. The truss's long-axis is the X-axis. I'm particularly hoping someone can determine if the DIR and ROT vectors are indeed perpendicular to each other. I've checked and re-checked, and the vectors do indeed appear to be normalized.
Thanks for any help in figuring this madness out.
Matt
This is how it should look: https://dl.dropboxusercontent.com/u/8017682/Orbiter/GOOD.jpg
This is how it actually looks: https://dl.dropboxusercontent.com/u/8017682/Orbiter/BAD.jpg
and which I undock the pallet, it instantly snaps to this, before floating away on the correct directional vector: https://dl.dropboxusercontent.com/u/8017682/Orbiter/STILLBAD.jpg
With dbeachy1's help, I boiled down my docking port definitions to only this. To be clear, this is the ONLY call to CreateDock found anywhere in my code right now.
Code:
CreateDock(_V(-2.25,0.916735,-0.654291),_V(0.0,0.5,-0.866025),_V(0.0,0.866025,0.5));
When I do have other docking ports however, they use the same numbers, only with changes to the signs of the coordinates, DIR and ROT vectors, and a change in the X-value. The truss's long-axis is the X-axis. I'm particularly hoping someone can determine if the DIR and ROT vectors are indeed perpendicular to each other. I've checked and re-checked, and the vectors do indeed appear to be normalized.
Thanks for any help in figuring this madness out.
Matt