Posts

Showing posts from March, 2019

Unreal-Engine-C-Programming - Components and Collision -part-6/10

Create Components; Make a Pawn Class  Name it what you want We make a components move and collide with solid objects; Creating Properties Colide_Pawn.h  UParticleSystemComponent* OurParticalSystem; Colide_Pawn.cpp in Constructor we create : Sphere Component  Static Mesh Component Spring Arm Component  Camera Component   We need Import Files first : #include "Classes/Components/SphereComponent.h" #include "Classes/Components/StaticMeshComponent.h" #include "ConstructorHelpers.h" #include "Classes/Particles/ParticleSystemComponent.h" #include "GameFramework/SpringArmComponent.h" #include "Camera/CameraComponent.h"                           we will define first Root Component :    Physical Presence that interact and collide with our game world. USphereComponent* SphereComponent = CreateDefaultSubobject<USphereComponent> ( TEXT...