Magically import images and more into Gamecraft as blocks
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- using GamecraftModdingAPI.Utility;
- using Svelto.ECS;
- using Unity.Mathematics;
- using RobocraftX.Physics;
- using RobocraftX.Character;
-
- namespace Pixi
- {
- internal class PlayerLocationEngine : IApiEngine
- {
- public string Name => "PixiPlayerLocationGameEngine";
-
- public EntitiesDB entitiesDB { set; private get; }
-
- public void Dispose() {}
-
- public void Ready() {}
-
- public float3 GetPlayerLocation(uint playerId)
- {
- return entitiesDB.QueryEntity<RigidBodyEntityStruct>(playerId, CharacterExclusiveGroups.OnFootGroup).position;
- }
- }
- }
|