Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ aimPosition
Method
aimPosition
source/game/StarNpc.cpp:997–999 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
995
}
996
997
Vec2F Npc::aimPosition() const {
998
return world()->geometry().xwrap(Vec2F(m_xAimPosition.get(), m_yAimPosition.get()) + position());
999
}
1000
1001
float Npc::interactRadius() const {
1002
return 9999;
Callers
15
setDungeonId
Method · 0.45
spawnItem
Method · 0.45
spawnTreasure
Method · 0.45
spawnMonster
Method · 0.45
spawnNpc
Method · 0.45
spawnVehicle
Method · 0.45
spawnStagehand
Method · 0.45
clearStagehand
Method · 0.45
spawnLiquid
Method · 0.45
entityEval
Method · 0.45
placeDungeon
Method · 0.45
addBiomeRegion
Method · 0.45
Calls
3
xwrap
Method · 0.45
geometry
Method · 0.45
get
Method · 0.45
Tested by
2
update
Method · 0.36
lightSources
Method · 0.36