mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-24 15:52:32 +00:00
Merge branch 'main' into components-wheeeee
This commit is contained in:
commit
ddc5f0e117
@ -1244,9 +1244,7 @@ bool Entity::IsSleeping() const {
|
|||||||
|
|
||||||
|
|
||||||
const NiPoint3& Entity::GetPosition() const {
|
const NiPoint3& Entity::GetPosition() const {
|
||||||
if (!this) return NiPoint3::ZERO;
|
auto* controllable = GetComponent<ControllablePhysicsComponent>();
|
||||||
|
|
||||||
auto controllable = GetComponent<ControllablePhysicsComponent>();
|
|
||||||
|
|
||||||
if (controllable != nullptr) {
|
if (controllable != nullptr) {
|
||||||
return controllable->GetPosition();
|
return controllable->GetPosition();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user