Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Dynamics/Entities/Triggers/Headers/Trigger.h

Diff revisions: vs.
  @@ -39,7 +39,7 @@
39 39
40 40 /// Checks if the unit has activated this trigger and launches the Task
41 41 /// If we receive a NULL unit as a param, we use the camera position
42 - bool check(Unit* const unit,const vec3<F32>& camEyePos = vec3<F32>(0,0,0));
42 + bool check(Unit* const unit,const vec3<F32>& camEyePos = vec3<F32>(0.0f));
43 43 /// Sets a new Task for this trigger
44 44 void updateTriggeredTask(Task_ptr triggeredTask);
45 45 /// Trigger's the Task regardless of position
  @@ -65,7 +65,9 @@
65 65 virtual void render(SceneGraphNode* const sgn);
66 66
67 67 ///SceneNode test
68 - bool isInView(const bool distanceCheck,const BoundingBox& boundingBox,const BoundingSphere& sphere){return _drawImpostor;}
68 + bool isInView(const BoundingBox& boundingBox,const BoundingSphere& sphere, const bool distanceCheck = false) {
69 + return _drawImpostor;
70 + }
69 71
70 72 private:
71 73 /// The Task to be launched when triggered