2021-12-05 17:54:36 +00:00
|
|
|
/*
|
|
|
|
* Darkflame Universe
|
2023-10-09 20:19:38 +00:00
|
|
|
* Copyright 2023
|
2021-12-05 17:54:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "RigidbodyPhantomPhysicsComponent.h"
|
|
|
|
#include "Entity.h"
|
|
|
|
|
2023-10-09 20:19:38 +00:00
|
|
|
RigidbodyPhantomPhysicsComponent::RigidbodyPhantomPhysicsComponent(Entity* parent) : PhysicsComponent(parent) {
|
2021-12-05 17:54:36 +00:00
|
|
|
m_Position = m_Parent->GetDefaultPosition();
|
|
|
|
m_Rotation = m_Parent->GetDefaultRotation();
|
|
|
|
}
|
|
|
|
|
2024-02-27 07:25:44 +00:00
|
|
|
void RigidbodyPhantomPhysicsComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInitialUpdate) {
|
2023-10-09 20:19:38 +00:00
|
|
|
PhysicsComponent::Serialize(outBitStream, bIsInitialUpdate);
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|