CTRL + P Parenting = Logic parenting?

Normally take it off because of discomfort, however I looked at (and already it was my files: D)

BUG!

yeah , bigbug.

now I remember what I said was that error, there was already in version 2.57.
The problem is when you are parent objects in edit mode.(like the title of TD)

EDIT MODE PARENT-> UNPARENT BGE == BIG-BUG

and I do not know what I become, perhaps static objects, because it does not work either linear velocity. (which can be used as a fake gravity)

Solution: Do not bring in the BGE parent object from edit mode (if would unparent it after)

while, semms (try now)

any problem if the object is not parenting in edit mode,

in bge can parent, unparent , reparent ecc… gravity work, all work .

this is for obj “father”

from bge import logic as BG
from bge import events
c=BG.getCurrentController()
obj=c.owner
sce=BG.getCurrentScene()
key=BG.keyboard.events

AKEY=key[events.AKEY]
UKEY=key[events.UKEY]

if AKEY==1: #press A-> add obj
    KKK=sce.addObject("Cube.002",obj,0)
    KKK.setParent(obj)
    KKK.localPosition[2]+=15
    #if would change the position when start relative to parent(father) object
    KKK.worldPosition[1]+=5#if would change pos absolute at start

if UKEY==1:# press U-> unparent the children
    KKK=obj.children[0]
    KKK.removeParent()
    
obj.applyRotation([0,0.2,0],1)


just for the record,
it is sufficient that the objects are not parent in edit mode and all is well
you can easily add or remove the parent (see Annex)
if it is a dynamic object is dynamic, if there is gravity is gravity, collisions, etc. …:stuck_out_tongue:

(I do not know if that is the same for armor)

well

Attachments

parent_unparent_reparent_reumparent.blend (119 KB)