PixelLightAPI  .
Protected Member Functions
PLScene::SNMRotationTarget Class Reference

Scene node modifier class rotating a scene node towards a target scene node. More...

#include <SNMRotationTarget.h>

Inheritance diagram for PLScene::SNMRotationTarget:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

virtual PLS_API void OnActivate (bool bActivate) override
 Called when the scene node modifier has been activated or deactivated.

Detailed Description

Scene node modifier class rotating a scene node towards a target scene node.

Remarks:
Rotates the scene node so it's always 'looking at' a given target scene node. This modifier doesn't offer 'target offsets' because they can be easy and universal constructed by using for instance a 'SNMAnchor' scene node modifier in combination with a 'SNHelper' scene node.

Member Function Documentation

virtual PLS_API void PLScene::SNMRotationTarget::OnActivate ( bool  bActivate) [override, protected, virtual]

Called when the scene node modifier has been activated or deactivated.

Parameters:
[in]bActivate'true' if the scene node modifier is now active, else 'false'
Note:
  • The scene node "Inactive"-flag as well as the "Frozen"-flag are taken into account
  • 'bActivate' will be 'true' if the scene node modifier AND the owner scene node AND it's parent scene container (recursive!) are active
  • 'bActivate' will be 'false' if the scene node modifier OR the owner scene node OR it's parent scene container (recursive!) is inactive
  • The default implementation is empty

Reimplemented from PLScene::SceneNodeModifier.


The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:25
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported