Page 1 of 1

AttachEntityObject weird things...

Posted: Fri Feb 07, 2025 3:04 pm
by minimy
Hi, I have an animated entity with bones, when I connect another object to the entity without defining the bone everything goes well. But when I specify the bone, the object disappears. I have tried other bones and the same result.
If I disconnect the object it appears where it should be, but when I reconnect it disappears again.
What can it be?

AttachEntityObject(prota, "", EntityID(1)); This work fine.
AttachEntityObject(prota, "head", EntityID(1)); no work or object is invisible??. :shock:
Coordinates are right because when unlink the object is in the right position.

I was looking the examples an work fine but with my animated object no work.

Sorry ,the code is long to put here.

Objects modeled and texturized by me, with normalmap look better :mrgreen:
Image

Re: AttachEntityObject weird things...

Posted: Fri Feb 07, 2025 3:20 pm
by minimy
No work with both entitys, the dog and the man and all the objects what i got.
The bone name is 'head' but i try with others like 'R_hand', 'L_foot' and more but no work :?
Tested with PB 6.02 and 6.12, the weird thing is the examples included in PB work... is crazy!! :mrgreen:

Re: AttachEntityObject weird things...

Posted: Fri Feb 07, 2025 4:42 pm
by miso
I can't figure out this, but maybe the object inherits something from the bone. Scale maybe?
Please try 6.20 beta, a lot of 3d bugfixes had been made there.

Re: AttachEntityObject weird things...

Posted: Fri Feb 07, 2025 4:59 pm
by minimy
miso wrote: Fri Feb 07, 2025 4:42 pm I can't figure out this, but maybe the object inherits something from the bone. Scale maybe?
Hey miso, you are the best! allways helping.
May be, because the object is scaled to 0.005 :lol:

YEEESSS!! is the scale
Thank you very much friend! You are a 3D master!
I learn a lot with your help.

Re: AttachEntityObject weird things...

Posted: Fri Feb 07, 2025 5:16 pm
by miso
You are a 3D master!
I wish I was, but that's not true. Your compliment felt good though, ;)