summaryrefslogtreecommitdiff
path: root/playerpos.go
diff options
context:
space:
mode:
Diffstat (limited to 'playerpos.go')
-rw-r--r--playerpos.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/playerpos.go b/playerpos.go
index 946bbae..1a388af 100644
--- a/playerpos.go
+++ b/playerpos.go
@@ -72,3 +72,7 @@ func (p PlayerPos) FOV() float32 {
func (p *PlayerPos) SetFOV(fov float32) {
p.FOV80 = uint8(fov * 80)
}
+
+func (p PlayerPos) StoodOn() [3]int16 {
+ return p.Pos().Sub(Vec{1: 5}).Int()
+}