How change origin from object with collision area without change pivot area?

How change origin from object with collision area without change pivot area of collision?please look the 2 pics.have a explanation in pics





Please help me if possible.its for spawn correct ragdoll object to position of the box. Thanks

Rather than changing the origin of the physics object (which will cause you a lot of trouble you do not want to get) I suggest you move the origin of your ragdoll object. Is that an option for your?

Ragdoll is a instanced group have default set physics to no collision no have option to set origin i go try change for see if work

spawn the ragdoll and then move it


import bge
cont = bge.logic.getCurrentController()
own = cont.owner

added = own.scene.addObject('GroupInstance',own,0)
added.worldPosition += Vector([0,0,offset])

I go try your code cause when enemy.endObject() then
Spawn the empty with ragdoll to position of hit.object and when health == 0 but the origin of hit.object is not equal of ragdoll instanced group then deform mesh when spawned.
Thanks