110 lines
3.0 KiB
C++
110 lines
3.0 KiB
C++
//=============================================================================
|
|
// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
|
|
//
|
|
// File:
|
|
//
|
|
// Description: Implement Locator
|
|
//
|
|
// History: 04/04/2002 + Created -- Cary Brisebois
|
|
//
|
|
//=============================================================================
|
|
|
|
//========================================
|
|
// System Includes
|
|
//========================================
|
|
// Foundation Tech
|
|
#include <raddebug.hpp>
|
|
|
|
//========================================
|
|
// Project Includes
|
|
//========================================
|
|
#ifndef WORLD_BUILDER
|
|
#include <meta/Locator.h>
|
|
#else
|
|
#include "Locator.h"
|
|
#endif
|
|
|
|
|
|
|
|
//******************************************************************************
|
|
//
|
|
// Global Data, Local Data, Local Classes
|
|
//
|
|
//******************************************************************************
|
|
|
|
//******************************************************************************
|
|
//
|
|
// Public Member Functions
|
|
//
|
|
//******************************************************************************
|
|
|
|
//==============================================================================
|
|
// Locator::Locator
|
|
//==============================================================================
|
|
// Description: Constructor.
|
|
//
|
|
// Parameters: None.
|
|
//
|
|
// Return: N/A.
|
|
//
|
|
//==============================================================================
|
|
Locator::Locator() :
|
|
mID( ~0 ),
|
|
mData( 0 ),
|
|
mFlags( 0 ),
|
|
mLocation( rmt::Vector( 0.0f, 0.0f, 0.0f ) )
|
|
{
|
|
SetFlag( ACTIVE, true );
|
|
}
|
|
|
|
//==============================================================================
|
|
// Locator::~Locator
|
|
//==============================================================================
|
|
// Description: Destructor.
|
|
//
|
|
// Parameters: None.
|
|
//
|
|
// Return: N/A.
|
|
//
|
|
//==============================================================================
|
|
Locator::~Locator()
|
|
{
|
|
}
|
|
|
|
//=============================================================================
|
|
// Locator::GetPosition
|
|
//=============================================================================
|
|
// Description: Comment
|
|
//
|
|
// Parameters: ( rmt::Vector* currentLoc )
|
|
//
|
|
// Return: void
|
|
//
|
|
//=============================================================================
|
|
void Locator::GetPosition( rmt::Vector* currentLoc )
|
|
{
|
|
GetLocation( currentLoc );
|
|
}
|
|
|
|
//=============================================================================
|
|
// Locator::GetHeading
|
|
//=============================================================================
|
|
// Description: Comment
|
|
//
|
|
// Parameters: ( rmt::Vector* heading )
|
|
//
|
|
// Return: void
|
|
//
|
|
//=============================================================================
|
|
void Locator::GetHeading( rmt::Vector* heading )
|
|
{
|
|
//Locators have no heading.
|
|
heading->Set( 0.0f, 0.0f, 0.0f );
|
|
}
|
|
|
|
//******************************************************************************
|
|
//
|
|
// Private Member Functions
|
|
//
|
|
//******************************************************************************
|