Neuro here is the easiest way I found to get an objects world matrix.Iam not sure if this will help you.
Function ObjectWorldMatrix( obj as integer )
//Caution Uses Matri1's Dlls
Local RotationVecX as integer : RotationVecX = New Vector3(1.0,0.0,0.0)
Local RotationVecY as integer : RotationVecY = New Vector3(0.0,1.0,0.0)
Local RotationVecZ as integer : RotationVecZ = New Vector3(0.0,0.0,1.0)
Local RotationMatrixX as integer : RotationMatrixX = New Matrix4()
Local RotationMatrixY as integer : RotationMatrixY = New Matrix4()
Local RotationMatrixZ as integer : RotationMatrixZ = New Matrix4()
Local RotationMatrixXYZ as integer : RotationMatrixXYZ = New Matrix4()
Build Rotation Axis Matrix4 RotationMatrixX,RotationVecX,object Angle X(obj)*DEGTORAD //#Constant DEGTORAD = 3.14159265/180.0
Build Rotation Axis Matrix4 RotationMatrixY,RotationVecY,object Angle Y(obj)*DEGTORAD
Build Rotation Axis Matrix4 RotationMatrixZ,RotationVecZ,object Angle Z(obj)*DEGTORAD
//Multiplication order must be Multiplyied ZYX for Left handed Coordinate system wich DBPro is.
Multiply Matrix4 RotationMatrixXYZ,RotationMatrixZ,RotationMatrixY
Multiply Matrix4 RotationMatrixXYZ,RotationMatrixXYZ,RotationMatrixX
Translate Matrix4 RotationMatrixXYZ,Object Position X(obj),Object Position Y(obj),Object Position Z(obj)
//Cleanup
Delete Vector3 RotationVecX
Delete Vector3 RotationVecY
Delete Vector3 RotationVecZ
Delete Matrix4 RotationMatrixX
Delete Matrix4 RotationMatrixY
Delete Matrix4 RotationMatrixZ
Endfunction RotationMatrixXYZ
[img]

[/img]






Custom,intel 3.0GHz Hyper Threaded,4GB RAM,ATI X1500 256mb,
WindowsXP DBpro v7.5 Synergy
The coffee is lovely dark and deep,and I have code to write before I sleep.