MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / moveTo

Method moveTo

source/game/StarPlayer.cpp:2106–2109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2104}
2105
2106void Player::moveTo(Vec2F const& footPosition) {
2107 m_movementController->setPosition(footPosition - feetOffset());
2108 m_movementController->setVelocity(Vec2F());
2109}
2110
2111ItemPtr Player::primaryHandItem() const {
2112 return m_tools->primaryHandItem();

Callers 2

initWorldMethod · 0.80
warpPlayerMethod · 0.80

Calls 2

setPositionMethod · 0.45
setVelocityMethod · 0.45

Tested by

no test coverage detected