Fixed transform updates to clear dirty flags appropriately #280

Merged
direnbharwani merged 4 commits from SP3-2-Physics into main 2022-11-25 15:10:32 +08:00
3 changed files with 23 additions and 2 deletions
Showing only changes of commit 1cfd3cfd3a - Show all commits

View File

@ -41,7 +41,7 @@ namespace SHADE
class SH_API CameraSystemUpdate final: public SHSystemRoutine
{
public:
CameraSystemUpdate() : SHSystemRoutine("Camera System Update", true) {};
CameraSystemUpdate() : SHSystemRoutine("Camera System Update", false) {};
virtual void Execute(double dt)noexcept override final;
};
friend class CameraSystemUpdate;

View File

@ -22,6 +22,14 @@ of DigiPen Institute of Technology is prohibited.
namespace SHADE
{
/*---------------------------------------------------------------------------------*/
/* Properties */
/*---------------------------------------------------------------------------------*/
GameObject BaseComponent::Owner::get()
{
return owner;
}
/*---------------------------------------------------------------------------------*/
/* Component Access Functions */
/*---------------------------------------------------------------------------------*/

View File

@ -36,7 +36,7 @@ namespace SHADE
/// </summary>
property GameObject Owner
{
GameObject get() { return owner; }
GameObject get();
}
/*-----------------------------------------------------------------------------*/
@ -166,6 +166,19 @@ namespace SHADE
template<typename NativeType>
public ref class Component : public BaseComponent
{
public:
/*-----------------------------------------------------------------------------*/
/* Properties */
/*-----------------------------------------------------------------------------*/
/// <summary>
/// Whether or not the Component is active and being updated by the engine.
/// </summary>
property bool Enabled
{
bool get() { return GetNativeComponent()->isActive; }
void set(bool value) { GetNativeComponent()->isActive = value; }
}
internal:
/*-----------------------------------------------------------------------------*/
/* Type Definitions */