i don't know about dark physics, but i did it like this in newton:
Function makeAI( gube, xpos#, ypos#, zpos# )
Entity( gube ).ObjNr = obj
Entity( gube ).Life = 100
Entity( gube ).Material = "ai"
Entity( gube ).Breakable = 0
load object "characters/thug.dbo", gube
yrotate object gube, 180 : fix object pivot gube
scale object gube, 10, 10, 10
texture object gube, 0, CHAR1TEXTURE
if Shaders > 0
texture object gube, 1, CHAR1DOT3
LoadEffect( gube , "shadersParallax Mapping.fx" )
Entity( gube ).useShader = 1
`Set Shadow Shading On gube, 0, 1000, 1
else
set object light gube, 1
fade object gube, 50
endif
position object gube, xpos#, ypos#, zpos#
AI Add Enemy gube
Obj = FindObject()
Make Object Sphere Obj, 5 : scale object Obj, 100, 500, 100 : position object Obj, xpos#, ypos#+10, zpos#
Entity( gube ).NewtObjId = Obj : hide object Obj
Body = newtonCollisionForHuman( Obj, 15.0, 1, 1, MaterialDefault )
NDB_SetVector 0.0, 1.0, 0.0 : UpVector = NDB_NewtonConstraintCreateUpVector( body ) : NDB_NewtonBodySetAutoFreeze Body, 0
EndFunction
` animate AI
`AnimateAI( x )
` newton body
Entity(x).X = AI Get Entity X( x )
Entity(x).Z = AI Get Entity Z( x )
Entity(x).Y = Object Position Y( x ) + 5 ` 5 = ai height
NDB_BuildMatrix 0.0, 0.0, 0.0, Entity(x).X, Entity(x).Y, Entity(x).Z
NDB_NewtonBodySetMatrix NDB_GetBody( entity(x).NewtObjId )
maybe that could be of some help.
if you've never used newton, then let me explain.
the top part creates a body, i don't know how it'll be done in dp, but i guess "phy make rigid body dynamic sphere ID".
however you would need an ellipsoid mesh instead of a sphere, and it should have a different ID than your AI object. because when you use the next part of the code it will automatically position both the body and the object that goes along with the body at the AI position.
if you don't use a separate object for the body the physics will try to move your AI object due to forces, and the DAI will try to move your AI Object due to Triggers etc.
again not sure how that would be done in dp.
sorry if that didn't help, but i trust there wouldn't be a major difference. i just don't know the commands in dp yet.