Visit Our Project Home Page

Posts Tagged ‘parent’

Initialization of Parent/Child Relationships

Tuesday, April 22nd, 2008

I wrote a simple in-game interface for linking objects.

Directions: Click object A, press “J”, and then click object B.  Object A will become the parent of object B.

When this occurs, you can move the parent; and the child will follow.  Also, rotating the parent causes the child to rotate around the parent (in an orbital fashion.)  Also, scaling the parent will cause the child to scale.

Problems: If you rotate the parent then try to translate the child, you will have a fun, fun time trying to get it to behave.  Try it if you don’t believe me.  Or look at my comment to Tommy’s most recent post if you want to spoil the surprise.