GteTransformController.cpp
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #include <GTEnginePCH.h>
10 #include <Graphics/GteSpatial.h>
11 using namespace gte;
12 
13 
15  :
16  mLocalTransform(localTransform)
17 {
18 }
19 
20 bool TransformController::Update(double applicationTime)
21 {
22  if (!Controller::Update(applicationTime))
23  {
24  return false;
25  }
26 
27  Spatial* spatial = reinterpret_cast<Spatial*>(mObject);
29  return true;
30 }
31 
ControlledObject * mObject
Definition: GteController.h:71
virtual bool Update(double applicationTime)
virtual bool Update(double applicationTime)
TransformController(Transform const &localTransform)
Transform localTransform
Definition: GteSpatial.h:49


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01