Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of ~archive/ParentNode


Ignore:
Timestamp:
Nov 28, 2007, 12:22:34 AM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/ParentNode

    v1 v2  
    1 = ParentNode (PNode) =
    2 The ParentNode is one element of a Tree spanning all the 3D-elements that have a position and rotation inside of the world.
     1= !ParentNode (PNode) =
     2[[ArchivePage]]
     3
     4The !ParentNode is one element of a Tree spanning all the 3D-elements that have a position and rotation inside of the world.
    35
    46source:/trunk/src/lib/coord/p_node.h#HEAD
    57Dependencies:
    6   * BaseObject
     8  * [wiki:archive/BaseObject BaseObject]
    79
    810== Description ==
    9 ParentNode has a ...
     11!ParentNode has a ...
    1012  * __Parent__ (another PNode it is connected to)
    11    * the '''topmost''' is '''NullParent'''
    12    * if the '''Parent''' is '''Null''', the Node is __free__ (or the NullParent)
     13   * the '''topmost''' is '''!NullParent'''
     14   * if the '''Parent''' is '''Null''', the Node is __free__ (or the !NullParent)
    1315  * list of __Children__.
    14    * each child is again a ParentNode
     16   * each child is again a !ParentNode
    1517   * each child will be updated acordingly if the Parent is moved/rotated.
    1618  * __Position__ (absolute in the world and relative to its parent)
    1719  * __Rotation__ (absolute in the world and relative to its parent)
    1820
    19 ParentNode is not able to ...
    20   * draw itself (this can be done for example with extension WorldEntity)
    21   * tick itself (this can be done for example with extension WorldEntity)
     21!ParentNode is not able to ...
     22  * draw itself (this can be done for example with extension [wiki:archive/WorldEntity WorldEntity])
     23  * tick itself (this can be done for example with extension [wiki:archive/WorldEntity WorldEntity])
    2224
    2325== Usage ==
    24 Whenever you create a new Entity in the World, that is a PNode (ex. WorldEntity Player...), it will automatically be added to the PNode tree.
    25 By default each PNode is added to the NullParent as a child.
     26Whenever you create a new Entity in the World, that is a PNode (ex. !WorldEntity Player...), it will automatically be added to the PNode tree.
     27By default each PNode is added to the !NullParent as a child.
    2628
    2729Now, what is this good for?
     
    4143  void setParentMode (PARENT_MODE parentMode);
    4244}}}
    43 These are the main functions of ParentNode, if you understand them you understand PNode :)[[br]]
     45These are the main functions of !ParentNode, if you understand them you understand PNode :)[[br]]
    4446Most of the functions speak for themselves, but '''setParentMode''' maybe needs some explanation:
    4547There are __different modes__ to connect Children to their Parents:
     
    5456
    5557__DEBUG__
    56 Functions, that are really usefull when debug ParentNode's, they can put out nice output or paint the nodes of the selected ParentNode, and of all its Children and children's children if you'd like.
     58Functions, that are really usefull when debug !ParentNode's, they can put out nice output or paint the nodes of the selected !ParentNode, and of all its Children and children's children if you'd like.
    5759{{{
    5860#!cpp