Offset rectangular body is not offset

I am using an offset rectangular body for one of my characters and I keep trying to change the x offset value of the body but it is not working. The body stays in its previous location. Is there a limitation or change with this parameter?

local offsetRectParams = {halfWidth = 30, halfHeight = 45, x = -10}

Hi @sdktester15,

This is our fault (an error in the documentation). You need to specify both the x and y offset values, even if you don’t want to offset it along one of those directions. In your case, just set y=0 and it should work. I’ll fix the docs on this point shortly.

Brent

Finally, it’s not my fault!  :stuck_out_tongue:

Thanks for the quick-fix.

Hi @sdktester15,

This is our fault (an error in the documentation). You need to specify both the x and y offset values, even if you don’t want to offset it along one of those directions. In your case, just set y=0 and it should work. I’ll fix the docs on this point shortly.

Brent

Finally, it’s not my fault!  :stuck_out_tongue:

Thanks for the quick-fix.