Kinematic movement + path following
This commit is contained in:
@@ -35,6 +35,9 @@ bool initEntityObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup) {
|
||||
object.shape.sizeX, object.shape.sizeY);
|
||||
ecs_set(ECS, e, SpatialGridID, {spatialID});
|
||||
ecs_set(ECS, e, Rotation, {0.0f});
|
||||
ecs_set(ECS, e, Velocity, {});
|
||||
ecs_set(ECS, e, AngularVelocity, {0.0f});
|
||||
ecs_set(ECS, e, SteeringOutput, {});
|
||||
ecs_set(ECS, e, TextureRegion, {objectTileset->tiles, bzTilesetGetTileRegion(objectTileset, object.gid)});
|
||||
ecs_set(ECS, e, Animation, {
|
||||
.firstFrame=(TextureRegion) {
|
||||
|
||||
Reference in New Issue
Block a user