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
|
|
|
*/
|
|
|
|
|
2023-10-09 20:19:38 +00:00
|
|
|
#ifndef __RIGIDBODYPHANTOMPHYSICS_H__
|
|
|
|
#define __RIGIDBODYPHANTOMPHYSICS_H__
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
#include "BitStream.h"
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
#include "NiPoint3.h"
|
|
|
|
#include "NiQuaternion.h"
|
2023-10-09 20:19:38 +00:00
|
|
|
#include "PhysicsComponent.h"
|
2023-03-04 07:16:37 +00:00
|
|
|
#include "eReplicaComponentType.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Component that handles rigid bodies that can be interacted with, mostly client-side rendered. An example is the
|
|
|
|
* bananas that fall from trees in GF.
|
|
|
|
*/
|
2023-10-09 20:19:38 +00:00
|
|
|
class RigidbodyPhantomPhysicsComponent : public PhysicsComponent {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2024-01-24 05:13:23 +00:00
|
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::RIGID_BODY_PHANTOM_PHYSICS;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
RigidbodyPhantomPhysicsComponent(Entity* parent);
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2023-08-10 21:33:15 +00:00
|
|
|
void Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate) override;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 20:19:38 +00:00
|
|
|
#endif // __RIGIDBODYPHANTOMPHYSICS_H__
|