Login
Username:

Password:


Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     transformedBound field problem
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
cgunn
Posted on: 2010/1/3 11:38
Just can't stay away
Joined: 2004/12/7
From: Canberra, Australia
Posts: 64
transformedBound field problem
I am trying to implement a rudimentary inter-object collision between DynamicTransforms by checking their bounding boxes and have struck a few problems. (Yes, I know that RigidBodyPhysics has inter-object collision)

MatrixTransform has a transformedBound field that I thought I could use. However, it gets set initially, but it doesn't seem to change as the translation changes.

DynamicTransforms don't seem to get the transformedBound field set at all.

Is there a way to get a boxBound of a Transform and DynamicTranform that incloses its children and is always current?

Should I be trying a different method?

Thanks.
Markus
Posted on: 2010/1/5 10:08
Webmaster
Joined: 2006/3/27
From: SenseGraphics
Posts: 1531
Re: transformedBound field problem
It should change as soon as the matrix updates. It works find for the DynamicTransform example. I implemented some code in H3DLoad to see if center and size changed and it does so properly.
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2004 SenseGraphics AB    ---    Powered by XOOPS