See if this helps
`not linked
`up date the AI system
Ai Update
` get new position form the Ai system
AIx=Ai get entity x(id)
AIz=Ai get entity z(id)
`load them in to physics system
phy set rigid body position ID,AIx,OBJECT POSITION Y(id),AIz
`update the physics systen
phy update
`get the new poistion from physics system and load them into th AI system ready for using.
AI Set Entity position EN,OBJECT POSITION X(id),OBJECT POSITION Z(id)
` check for blocking items
AI Set Entity Collide Entity Number, Collide Object
`sync everthing.
sync
Dark Physics makes any hot drink go cold.