Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: upOwlNight on January 29, 2016, 02:54:07 PM
-
Is this possible to do in playmaker? I've read a lot of stuff talking about finding bounds or extents, but my mesh render properties have no such option.
-
you mean like get scale?
edit: nevermind, I see what you mean...
I don't know but am also curious now
-
yea, just to clarify, for anyone else wondering what I meant:
I want to know the height and width of a rectangular game object specifically. Not it's scale, but how many units it takes up in space.
-
Just a quick thought for the height-
If you get the bounds of the colliders on the object you know where the mesh/object ends-
If the axis of the game object you want to get the height of is at the bottom of the object and not the middle- then you can just create a null as many units on the Y as the height the collider bounds gives you-
-then get the distance between the new null and the game object- that will give you the height in units-
-
thanks for the reply. Two questions:
Which property has the "bounds" of the collider?
Is this an efficient way of doing it?
I ask the second question because so many time I come up with a solution for something, and I feel like "should I really be doing this? is this what someone with experience would do? is this going to slow my game down?"
being self taught with just knowing some actions, to me, I feel like a student of the english language who knows vocabulary, but no grammar.