Added definitions for CollisionInfo properties
This commit is contained in:
parent
27e71558ad
commit
40044cbbfe
|
@ -0,0 +1,34 @@
|
|||
/************************************************************************************//*!
|
||||
\file CollisionInfo.cxx
|
||||
\author Tng Kah Wei, kahwei.tng, 390009620
|
||||
\par email: kahwei.tng\@digipen.edu
|
||||
\date Oct 31, 2022
|
||||
\brief Contains the definition of the functions of the managed CollisionInfo
|
||||
struct.
|
||||
|
||||
Note: This file is written in C++17/CLI.
|
||||
|
||||
Copyright (C) 2022 DigiPen Institute of Technology.
|
||||
Reproduction or disclosure of this file or its contents without the prior written consent
|
||||
of DigiPen Institute of Technology is prohibited.
|
||||
*//*************************************************************************************/
|
||||
#include "SHpch.h"
|
||||
#include "CollisionInfo.hxx"
|
||||
|
||||
namespace SHADE
|
||||
{
|
||||
Collider^ CollisionInfo::Collider::get()
|
||||
{
|
||||
return GameObject.GetComponent<SHADE::Collider^>();
|
||||
}
|
||||
|
||||
CollisionShape^ CollisionInfo::CollisionShape::get()
|
||||
{
|
||||
throw gcnew System::NotImplementedException();
|
||||
}
|
||||
|
||||
RigidBody^ CollisionInfo::RigidBody::get()
|
||||
{
|
||||
return GameObject.GetComponent<SHADE::RigidBody^>();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue