Example #1
0
        private static void Translate(StaticMeshComponent staticMeshComponent, float direction)
        {
            if (!stopTranslation)
            {
                Vector3 currentLocation = default;

                staticMeshComponent.GetLocation(ref currentLocation);

                currentLocation.Y += direction * World.DeltaTime;

                staticMeshComponent.SetWorldLocation(currentLocation);
            }
        }