Collision Bounds for Rect2D_OBB

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
diki
Posts: 140
Joined: Thu Sep 11, 2008 7:53 pm
Location: GMT+1
Contact:

Collision Bounds for Rect2D_OBB

Post by diki »

hi everybody,

first off, thank you very much for this nice tool! i am overwhelmed by the pure awesome and the prototyping speed of the editor!
second, a small question / bug (?):

when using Rect2D_OBB as the collision style, it appears that the collision bounds become relative to the scale of the model - e.g., setting the bounds of a model with scaling [ .2, .2 ] to [ .5, .5 ] means that the bounding box is now [ .1, .1 ] in size. this appears contrary to the other collision models, where the above would actually make the bounding box of the model larger than the model itself
- or did i just miss something?
User avatar
Kjell
Posts: 1883
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

Hi diki,

No you are correct. Only the OBB Collision types take a Model's scale and rotation in consideration. The non-OBB types only use the Position, CollisionBounds and CollisionOffset properties.

+ Welcome :)

K
User avatar
diki
Posts: 140
Joined: Thu Sep 11, 2008 7:53 pm
Location: GMT+1
Contact:

Post by diki »

thanks for your answer! :)
Post Reply