## Gyro sensor doesn't use simGetObjectVelocity

### Gyro sensor doesn't use simGetObjectVelocity

I notice that the gyro sensor's child script performs a simple derivative approximation to get the angular velocity. Would it make more sense to use simGetObjectVelocity instead?

### Re: Gyro sensor doesn't use simGetObjectVelocity

Hello,

what the sensor does is compute the transformation matrix from one frame to the next. Then divide the positional variation, and the Euler angles, with the simulation time step. Using simGetObjectVelocity, you will very probably obtain the same results. But you are free to modify the child script in order to customize the sensor's behaviour to your own needs.

Cheers

what the sensor does is compute the transformation matrix from one frame to the next. Then divide the positional variation, and the Euler angles, with the simulation time step. Using simGetObjectVelocity, you will very probably obtain the same results. But you are free to modify the child script in order to customize the sensor's behaviour to your own needs.

Cheers

### Re: Gyro sensor doesn't use simGetObjectVelocity

I'm happy either way. I'm using simObjectGetVelocity in my code, but was wondering which was the "V-REP way" since both seemed to work.

### Re: Gyro sensor doesn't use simGetObjectVelocity

Oh, probably the model of the gyro was made before the simGetObjectVelocity function was implemented... !

Cheers

Cheers