I just try for Acceleration
Under Tick()
void AVRCharacter::Accelaration()
{
if (VRCharacter->GetCharacterMovement()->GetCurrentAcceleration().Size() > 0.0f)
{
BlinkerMaterialBase;
}
}
HEADER files
#include “VRCharacter.h”
#include “Components/InputComponent.h”
#include “Camera/CameraComponent.h”
#include “Components/SceneComponent.h”
#include “Components/StaticMeshComponent.h”
#include “Engine/World.h”
#include “Camera/PlayerCameraManager.h”
#include “TimerManager.h”
#include “NavigationSystem.h”
#include “Components/PostProcessComponent.h”
#include “Materials/MaterialInstanceDynamic.h”
#include “GameFramework/CharacterMovementComponent.h”
when i called my function Accelaration()
in Tick ()
void AVRCharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
Accelaration();
}
unreal engine send me the crash report by mentioning Accelaration(); in Super::Tick(DeltaTime);