Please enter the commit message for your changes. Lines starting

This commit is contained in:
theOneEmployee 2020-10-27 12:29:44 +01:00
parent 4f0d4126ff
commit 1c46af7909
3 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,13 @@
{
"folders": [
{
"path": "."
},
{
"path": "D:\\Arbeit\\UE4\\UE_4.22"
}
],
"settings": {
"typescript.tsc.autoDetect": "off"
}
}

View File

@ -89,6 +89,17 @@ void UGrabber::TickComponent(float DeltaTime, ELevelTick TickType, FActorCompone
//move object we are holding
PhysicsHandle->SetTargetLocation(GetLineTraceEnd());
}
// DrawDebugLine(
// GetWorld(),
// GetPlayerWorldPosition(),
// GetLineTraceEnd(),
// FColor(0, 255 , 0), //red, green, blue,
// false,
// 0.f,
// 0,
// 5.f
// );
}
FHitResult UGrabber::GetFirstPhysicsBodyInReach() const

View File

@ -58,11 +58,12 @@ void UOpenDoor::TickComponent(float DeltaTime, ELevelTick TickType, FActorCompon
// ...
//if(PressurePlate->IsOverlappingActor(ActorThatOpens)) // kann nullpointer + UE4 crash geben
//if(PressurePlate && PressurePlate->IsOverlappingActor(ActorThatOpens)) //prüft erst, ob es ein actor gibt
if(TotalMass() > MassToOpenDoor)
if(TotalMass() >= MassToOpenDoor)
{
UE_LOG(LogTemp, Warning, TEXT("TEST OPEN DOOR"));
OpenDoor(DeltaTime);
//DoorLastOpened When the door was opened
DoorLastOpened = GetWorld()->GetTimeSeconds();;
DoorLastOpened = GetWorld()->GetTimeSeconds();
}
else