Dynamic gravity for characters

dreyn your errors are caused by missing includes I think. For example


#include "GameFramework/PhysicsVolume.h"

will solve “error C2027: use of undefined type ‘APhysicsVolume’”.

On to my own problem:

I got it to compile on 4.12.0 (constraint of the project I am working on) except for one function I had to comment out:


protected:
	/** Called when the collision capsule touches another primitive component */
	virtual void CapsuleTouched(UPrimitiveComponent* OverlappedComp, AActor* Other, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult) override;

Otherwise I get:


warning C4264: 'void UCharacterMovementComponent::CapsuleTouched(AActor *,UPrimitiveComponent *,int32,bool,const FHitResult &)': no override available for virtual member function from base 'UCharacterMovementComponent'; function is hidden

Is there something I can do to get to work with the protected function?