I'm trying to write a script which would effectively link one object to another, but not using any constraints.

A want it so when I rotate Object A, Object moves accordingly and rotates as well just as a simple link constraints would do. Getting muddled up in some trig at the moment and I'm sure there's a simple way to do it using Vector Maths that I'm not familiar with.

j-man

04-06-2009, 01:13 PM

Hi Dave,

Can't you use parameter wiring or the reaction manager for this? I suppose a script controller would do it.

J.

phoelix

04-06-2009, 01:31 PM

3d hierarchies use this equation:

T=L*P

where P is the parent's transform matrix, L is the local transform matrix and T is the resulted matrix.

DaveWortley

04-06-2009, 03:41 PM

@ j-man - Can't use wiring as I'm planning on converting this to a particle system to try get groups of particles rotation around helpers.

@phoelix - Thanks, thought there must be something simple along those lines...

Hopefully I can get it working on a particle system as well! Cheers

D

DaveWortley

04-06-2009, 05:31 PM

I've got this working with a particle flow but it just rotates each particle locally, how do I get it to move the particles as well? Do i have to get the transformation matrix of the particle flow as well?

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com