Collision between 2d and 3d Objects?

Software: Away3D 3.x

Avatar
Mr. Bzik, Newbie
Posted: 15 January 2012 10:56 AM   Total Posts: 1

Hi guys,
I have a problem with collision detection between 2D object and 3d Model. Googling around did not help :(. Help me please!

what i have:
1. Inventory System , where all Items are Stage Objects(sprites, movie clips and Bitmaps)-2D.
2. Scene3D with 3D Objects.

I need collision detection by dragging Item from Inventory System and dropping it on 3d Model.

   

MichaelS, Newbie
Posted: 16 January 2012 12:23 PM   Total Posts: 8   [ # 1 ]

My try would be (maybe there is an easier option though):

When the 2D Sprite is dropped (MouseUp)
-> Looping through all 3D Objects and get the bounds
-> Converting the 3D Bounds to 2D Points
-> Comparing if one of the converted 3D Bounds (now 2D Points) hits the dropped Object.

As I said, there might be an easier option, but thats what I would try..

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X