Hi,

I am trying to programmatically open a door. I saw there is an object in the engine but the specific tutorial referred here in the board looks removed in Esenthel 2.0.

So I tried to do this at my own but in all tries I had the final rotation looks different (perhaps of different framerates?).

First I verfied that the door is open with:

Quote: Matrix m = T.matrix();

m.orn().rotateY(80);

T.matrix(m);

Now I tried this in the update()-Function:

Code:

`if(isMoving)`

{

float ti = 1*Time.ad();

Matrix m = T.matrix();

m.orn().rotateY(ti);

T.matrix(m);

cY+=Abs(ti);

if(cY>=80) isMoving=false;

}

I would expect that cY is 80 if the door has the correct rotation. But it continues to rotate much, much longer. The value where the door is open is here cY ~ 1.50 (a bit too far)

Does anyone has an idea what's wrong here - a sample code is highly appreciated? And does the tutorial for doors exist and I just didn't find it?

Thanks,

Stefan