Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Opened 16 years ago

Closed 16 years ago

#1 closed defect (fixed)

implementing parenting

Reported by: patrick Owned by: patrick
Priority: major Milestone: 0.2.2-pre-alpha orx-v0
Component: Parenting Version:
Keywords: Cc:
Referenced By: References:

Description

Implementing a new coordinating system via parenting. The idea is, that every object, every point in the world has a relative and an absoulte coordinate.

  • relative coordinate: is defined relative to a parent
  • absolute coordinate: is defined in absolute openGL coordinate space

The relative coordinates make up a tree, from a base parent NullParent all the other parents are derived from.
The source code will be writen into the files p_node.h and p_node.cc, the classes will be called PNode
There will be some HelperParent that will be used to make parents that have no direct use in the world.

Change History (4)

comment:1 Changed 16 years ago by patrick

  • Status changed from new to assigned

comment:2 Changed 16 years ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 16 years ago by bensch

  • Resolution fixed deleted
  • Status changed from closed to reopened

Not yet finished.

what we need is:

  • Rotation: aroud the parent if the parent rotates
  • Simplicity: everything has to work out of the Box. The derived classes of p_node do only have to be parented, the rest is done by p_node
  • One Sided:
    • either setParent or setChild
    • children/parents must be private (or at least protected) or errors occure
  • have to talk about this matter @patrick & @bensch

comment:4 Changed 16 years ago by patrick

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.