public class UnrealUtils extends Object
Measures are in Unreal Engine native units called Unreal units (UU).
| Modifier and Type | Field and Description |
|---|---|
static double |
BOT_CENTER_OF_GRAVITY_HEIGHT
Center of gravity - distance from the floor in UU.
|
static double |
CHARACTER_COLLISION_HEIGHT
Height in UU of the bounding cylinder used for collision detection.
|
static double |
CHARACTER_COLLISION_RADIUS
Radius in UU of the bounding cylinder used for collision detection.
|
static double |
CHARACTER_HEIGHT_CROUCHING
Height in UU of the bot when crouching.
|
static double |
CHARACTER_HEIGHT_STANDING
Height in UU of the bot when stading.
|
static Velocity |
CHARACTER_RUN_SPEED
Speed of the bot while running.
|
static Velocity |
CHARACTER_WALK_SPEED
Speed of the bot while walking.
|
static float |
DEG_TO_UT_ANGLE |
static double |
NAV_POINT_HEIGHT
NavPoint distance from the floor.
|
static int |
UT_ANGLE_TO_DEG |
static double |
UT_ANGLE_TO_RAD |
| Constructor and Description |
|---|
UnrealUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
degreeToUnrealDegrees(int degrees)
Converts angle in degrees (0-360) to Unreal units used for angles (0-65635).
|
static double |
unrealDegreeToDegree(int unrealDegrees)
Converts Unreal degrees (0-65635) to normal degrees (0-360).
|
static double |
unrealDegreeToRad(double unrealDegrees) |
public static final double CHARACTER_COLLISION_RADIUS
public static final double CHARACTER_COLLISION_HEIGHT
public static final double CHARACTER_HEIGHT_STANDING
public static final double CHARACTER_HEIGHT_CROUCHING
public static Velocity CHARACTER_RUN_SPEED
public static Velocity CHARACTER_WALK_SPEED
public static final double BOT_CENTER_OF_GRAVITY_HEIGHT
public static final double NAV_POINT_HEIGHT
public static final double UT_ANGLE_TO_RAD
public static final float DEG_TO_UT_ANGLE
public static final int UT_ANGLE_TO_DEG
public static int degreeToUnrealDegrees(int degrees)
degrees - Angle in degreespublic static double unrealDegreeToDegree(int unrealDegrees)
unrealDegrees - public static double unrealDegreeToRad(double unrealDegrees)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.