Forums > Jitter

vertex positions

November 1, 2013 | 2:33 pm

Hi!

I am new to Jitter. I am trying to trace the position of an object on the xyz space. I know how to get the position of its center, but say I have a cube, I would like to know where all of the 8 vertexes are at any given moment. I have activated the matrixoutput from the gridshape and when I print the matrix it seems that the vertexes (first 3 values of each line, right?) are immobile despite the cube is actually bouncing around.

Any help?

Thank you

Michele


November 4, 2013 | 4:47 am

@matrixoutput 2


November 4, 2013 | 2:37 pm

Thanks Tobias,
I got the vertexes of the cube moving now but now it seems like instead of having the jit.phys.body and the gridshape (or plato) overlap and act as a one object, the former acts as a contraint of the latter, meaning the gridhshape revolves around the body. Why would that be?


Viewing 3 posts - 1 through 3 (of 3 total)