CombatSample

data class CombatSample(val currentVector: Vec3, val previousVector: Vec3, val targetVector: Vec3, val velocityDelta: Vec2, val playerDiff: Vec3, val targetDiff: Vec3, val distance: Float, val hurtTime: Int, val age: Int) : Record

Constructors

Link copied to clipboard
constructor(currentVector: Vec3, previousVector: Vec3, targetVector: Vec3, velocityDelta: Vec2, playerDiff: Vec3, targetDiff: Vec3, distance: Float, hurtTime: Int, age: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerializedName(value = "f")
val age: Int

Age in this case is the Entity Age, however, we will use it later to determine the time we have been tracking this entity.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "a")
val currentVector: Vec3
Link copied to clipboard
@SerializedName(value = "i")
val distance: Float
Link copied to clipboard
@SerializedName(value = "e")
val hurtTime: Int
Link copied to clipboard
@SerializedName(value = "g")
val playerDiff: Vec3
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "b")
val previousVector: Vec3
Link copied to clipboard

Velocity delta should be in a positive direction, going from the previous rotation to the current rotation.

Link copied to clipboard
@SerializedName(value = "h")
val targetDiff: Vec3
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "c")
val targetVector: Vec3
Link copied to clipboard

Total delta should be in a positive direction, going from the current rotation to the target rotation.

Link copied to clipboard
@SerializedName(value = "d")
val velocityDelta: Vec2