Skip to content

Commit 8487fd2

Browse files
committed
ALTV-673 | Cached entity adjustments for sdk
1 parent 34fabce commit 8487fd2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

c-api/cache/CachedEntity.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ namespace cache
247247
bool IsRemote() const override {
248248
return _isRemote;
249249
}
250+
251+
float _mass;
252+
253+
float GetMass() const override { return _mass; }
254+
void SetMass(float mass) override {}
255+
void ResetMass() override {}
256+
257+
alt::Vector3f _angInertia;
258+
259+
alt::Vector3f GetAngInertia() const override { return _angInertia; }
260+
void SetAngInertia(const alt::Vector3f& mass) override {}
261+
void ResetAngInertia() override {}
250262
#endif
251263
};
252264
} // namespace alt

0 commit comments

Comments
 (0)