Documentation
¶
Index ¶
- Constants
- func CalculateDamage(weapon protocol.WeaponType, hitType protocol.HitType, distance float32) uint8
- func CalculateSpread(weapon protocol.WeaponType) float32
- func CanSee(vxlMap *vxl.Map, from, to protocol.Vector3f) bool
- func MoveGrenade(vxlMap *vxl.Map, position, velocity *protocol.Vector3f, dt float32) int
- func MovePlayer(p *player.Player, vxlMap *vxl.Map, dt float32, gameTime float32) int8
- func RaycastVXL(vxlMap *vxl.Map, start, direction protocol.Vector3f, maxDistance float32) (hit bool, hitPos protocol.Vector3f, hitBlock protocol.Vector3i, ...)
- func TryUncrouch(p *player.Player, vxlMap *vxl.Map) bool
- func ValidateHit(shooter, target protocol.Vector3f, orientation protocol.Vector3f, ...) bool
Constants ¶
View Source
const ( PlayerRadius = 0.45 PlayerEyeHeight = 0.9 PlayerCrouchEye = 0.45 JumpVelocity = -0.36 Epsilon = 1e-6 DiagonalFactor = 0.70710678 FallDamageVel = 0.58 FallSlowDownVel = 0.24 FallDamageScalar = 4096.0 MaxVerticalVelocity = 3.0 )
Variables ¶
This section is empty.
Functions ¶
func CalculateDamage ¶
func CalculateSpread ¶
func CalculateSpread(weapon protocol.WeaponType) float32
func MoveGrenade ¶
func MovePlayer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.