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 Studio Chat / [SOLVED] Obtaining width / scales of a loaded 3d object

Author
Message
IanDunn
User Offline
Joined: 16th Dec 2020
Location: Reading, UK.
Posted: 18th Dec 2020 10:13
Hi, I was wondering if someone could help.. trying to chain a train and carriage or carriages together which I thought would be easy to do in the code by having an array pointer to the parent objects parameters like speed etc, but when loading say the train object I can set the scale of the train by height, but to position a carriage behind the train need to know the subsequent width and length of the train or carriage object (so when added it doesn't overlap the object in front).. I cannot seem to find any command that returns to width or height of a scaled object ? was hoping for something like GetObjectWidth or GetObjectDimensions()...

Many thanks for any help.

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

Go to answer

IanDunn
User Offline
Joined: 16th Dec 2020
Location: Reading, UK.
Posted: 18th Dec 2020 10:20
This post has been marked by the post author as the answer.
Answering my owning question - GetObjectSizeMaxX() etc..

Login to post a reply

Server time is: 2021-09-19 21:52:00
Your offset time is: 2021-09-19 21:52:00