Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] FixObjectToBone

Author
Message
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 30th Mar 2019 15:45
I never used the 3d commands in AppGameKit before. Can anyone explain why Object2 doesn't move with Object1?

The author of this post has marked a post as an answer.

Go to answer

Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 30th Mar 2019 16:25
This post has been marked by the post author as the answer.
The built in objects in AppGameKit (cube,sphere..etc...) do not have any bones so attempting to fix another object to one with no bones wont work. You can use GetObjectNumBones() to find out if an object has any bones.

Only objects loaded withe LoadObjectWithChildren() have bones so you could use a 3d editor to create a cube with bones if you really wanted to.

As you have already found, using FixObjecToObject() is the right way to do it with bonless objects.
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 30th Mar 2019 19:21
Thanks for the answer. The documentation doesn't mention that requirement.

Login to post a reply

Server time is: 2024-11-23 01:41:29
Your offset time is: 2024-11-23 01:41:29