This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tags-input { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
align-content: flex-start; | |
justify-content: center; | |
} | |
.tags-input .tag-entry { | |
user-select: none; | |
cursor: pointer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Very basic Q-Learner that is tailored for the cart-pole environment. | |
This implementation leaves a lot of space for improvements. | |
''' | |
import gym | |
from gym import wrappers | |
import math |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool GetSightRayHitLocation(FVector& HitLocation) const | |
{ | |
// Find crosshair position in pixel coordinates | |
int32 ViewportSizeX, ViewportSizeY; | |
GetViewportSize(ViewportSizeX, ViewportSizeY); | |
FVector2D ScreenLocation = FVector2D(ViewportSizeX * CrossHairXLocation, ViewportSizeY * CrossHairYLocation); | |
// "De-project" the screen position of the crosshair to a world direction | |
FVector LookDirection, LookStartLocation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool GetLookDirection(FVector2D ScreenLocation, FVector& LookDirection) const | |
{ | |
FVector CameraWorldLocation; | |
return DeprojectScreenPositionToWorld( | |
ScreenLocation.X, | |
ScreenLocation.Y, | |
CameraWorldLocation, | |
LookDirection | |
); | |
} |
NewerOlder