Ok I'm loading 4 3DS model parts to make the compound collision. I'm using GLScene so I need to get the vertex data from TGLFreeforms

[pascal]
var CompoundCollision : PNewtonCollision;
Collisions: array[0..3] of PNewtonCollision;
Freeforms: array[0..3] of TGLFreeform;
.
.
.
.
.

Collisions[0] := NewtonCreateConvexHull(NewtonWorld,8,@Freeforms[0].MeshObjects.Items[0].Vertices,3*SizeOf(Single),nil);
Collisions[1] := NewtonCreateConvexHull(NewtonWorld,8,@Freeforms[1].MeshObjects.Items[0].Vertices,3*SizeOf(Single),nil);
Collisions[2] := NewtonCreateConvexHull(NewtonWorld,8,@Freeforms[2].MeshObjects.Items[0].Vertices,3*SizeOf(Single),nil);
Collisions[3] := NewtonCreateConvexHull(NewtonWorld,8,@Freeforms[3].MeshObjects.Items[0].Vertices,3*SizeOf(Single),nil);
end;
CompoundCollision := NewtonCreateCompoundCollision (NewtonWorld,4,@Collisions[0]);
[/pascal]

I'm getting an access violation in Newton.dll when the object collides with a box and I think the above code is causing it. Any GLScene/Newton experts with an answer? :lol: