Uses of Class
dev.zwazel.internal.game.transform.Vec3
Packages that use Vec3
Package
Description
-
Uses of Vec3 in dev.zwazel.internal.game.map
Methods in dev.zwazel.internal.game.map that return Vec3Modifier and TypeMethodDescriptionMapDefinition.getClosestTileFromWorld
(Vec3 worldPos) Returns the Coordinates of the closest tile to the given world position in the map grid.MapDefinition.getTile
(int x, int y) Returns the tile at the given grid coordinates as a Vec3.Returns the tile at the given grid coordinates as a Vec3.MapDefinition.getWorldTileCenter
(int x, int y) Returns the center of the tile in world coordinates.Methods in dev.zwazel.internal.game.map that return types with arguments of type Vec3Modifier and TypeMethodDescriptionMapDefinition.gridToWorld()
Returns the world coordinates of the tile centers in the map grid as a list.Methods in dev.zwazel.internal.game.map with parameters of type Vec3Modifier and TypeMethodDescriptionMapDefinition.getClosestTileFromWorld
(Vec3 worldPos) Returns the Coordinates of the closest tile to the given world position in the map grid.Returns the tile at the given grid coordinates as a Vec3.float
MapDefinition.getTileHeight
(Vec3 pos) Returns the height of the tile at the given grid coordinates. -
Uses of Vec3 in dev.zwazel.internal.game.state
Methods in dev.zwazel.internal.game.state that return Vec3Modifier and TypeMethodDescriptionFlagBaseState.colliderSize()
Returns the value of thecolliderSize
record component.FlagGameState.colliderSize()
Returns the value of thecolliderSize
record component.Constructors in dev.zwazel.internal.game.state with parameters of type Vec3ModifierConstructorDescriptionFlagBaseState
(long flagId, long flagBaseId, String team, Transform transform, Vec3 colliderSize, boolean flagInBase) Creates an instance of aFlagBaseState
record class.FlagGameState
(long flagId, long flagBaseId, Vec3 colliderSize, String team, Transform transform, FlagState state) Creates an instance of aFlagGameState
record class. -
Uses of Vec3 in dev.zwazel.internal.game.tank
Methods in dev.zwazel.internal.game.tank that return Vec3Modifier and TypeMethodDescriptionTankConfig.projectileSize()
Returns the value of theprojectileSize
record component.TankConfig.size()
Returns the value of thesize
record component.Methods in dev.zwazel.internal.game.tank with parameters of type Vec3Modifier and TypeMethodDescriptiondefault void
Tank.moveTowards
(PublicGameWorld world, Tank.MoveDirection moveDirection, Vec3 targetPosition, boolean simultaneous) Move the tank towards the target position in the specified move direction.default void
Tank.moveTowards
(PublicGameWorld world, Vec3 targetPosition, boolean simultaneous) default void
Tank.rotateBodyTowards
(PublicGameWorld world, Vec3 targetPosition) default void
Tank.rotateTurretTowards
(PublicGameWorld world, Vec3 globalTarget) Constructors in dev.zwazel.internal.game.tank with parameters of type Vec3ModifierConstructorDescriptionTankConfig
(float moveSpeed, float bodyRotationSpeed, float turretYawRotationSpeed, float turretPitchRotationSpeed, float turretMaxPitch, float turretMinPitch, float maxSlope, Vec3 size, Long shootCooldown, float projectileDamage, float projectileSpeed, long projectileLifetime, Vec3 projectileSize, float maxHealth, HashMap<Side, Float> armor, long respawnTimer, float projectileGravity) Creates an instance of aTankConfig
record class. -
Uses of Vec3 in dev.zwazel.internal.game.transform
Fields in dev.zwazel.internal.game.transform declared as Vec3Modifier and TypeFieldDescriptionstatic final Vec3
Vec3.X
static final Vec3
Vec3.Y
static final Vec3
Vec3.Z
static final Vec3
Vec3.ZERO
Methods in dev.zwazel.internal.game.transform that return Vec3Modifier and TypeMethodDescriptionQuaternion.backward()
Transform.backward()
Quaternion.down()
Transform.down()
Quaternion.forward()
Transform.forward()
Quaternion.left()
Transform.left()
Vec3.multiply
(double scalar) Vec3.normalize()
Vec3.normalize_or_zero()
Quaternion.right()
Transform.right()
Vec3.scale
(double scalar) Quaternion.up()
Transform.up()
Methods in dev.zwazel.internal.game.transform with parameters of type Vec3Modifier and TypeMethodDescriptiondouble
double
Constructors in dev.zwazel.internal.game.transform with parameters of type Vec3ModifierConstructorDescriptionTransform
(Vec3 translation, Quaternion rotation) Constructs a new Transform from the given translation and rotation.