MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / SetPosition

Method SetPosition

src/plugin/kernel/src/AFCEntity.cpp:267–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267bool AFCEntity::SetPosition(const AFVector3D& position, const float orient)
268{
269 ARK_ASSERT_RET_VAL(m_pCallBackManager != nullptr && opt_charactor_ != nullptr, false);
270
271 if (opt_charactor_->pos_ == position && opt_charactor_->orient_ == orient)
272 {
273 return false;
274 }
275
276 AFVector3D old_pos = opt_charactor_->pos_;
277
278 opt_charactor_->pos_ = position;
279 opt_charactor_->orient_ = orient;
280
281 m_pCallBackManager->OnMoveEvent(guid_, old_pos, opt_charactor_->pos_);
282
283 return true;
284}
285
286bool AFCEntity::SetPosition(const float x, const float y, const float z, const float orient)
287{

Callers

nothing calls this directly

Calls 1

OnMoveEventMethod · 0.80

Tested by

no test coverage detected