Updated primitives for physics

I added triangle class to primitives for use with collision model, I
have to run more tests but this is it basically.