Posts: 937
Threads: 69
Joined: Dec 2009
Reputation:
0
So lets say I want to create a set of objects in one line and leave the same space between them even if some objects are bigger and some are smaller they all will have the same distance between them.
Obviously one thing I would need to know is the size of the object but what do I have to do afterwards?
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
I'm not a math guy but if you have the size of the object wouldn't it be a simple point to point distance measurement and then substract the size of each object from that value?
Posts: 937
Threads: 69
Joined: Dec 2009
Reputation:
0
Hmmm not sure. It's kinda a brain attack. Simple to make a line of objects but harder if there are different sized objects in that line coz the pos gonna change.
Posts: 851
Threads: 33
Joined: Jul 2016
Reputation:
0
Get the average size, and consider that all the objects are with that size, and calculate the distance you want between these objects
Posts: 720
Threads: 34
Joined: Dec 2010
Reputation:
0
If its a low amount of objects, you could set up the distance for each object yourself in an array. However, if its a complex set of objects I would recommend you to obtain the collision size with Y_Less include, then add a default minimum distance and you're ready to go. It's not really going to be very exact, but you're going to get good results.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Someone made an include showing how big certain vehicles were, could be time to have one for objects as well.