October 2016
Intermediate to advanced
452 pages
9h 47m
English
This component is similar to RotatingMovementComponent in that it is designed to make the components parented to it move in a particular way. In this instance, it will move any attached components in an orbit around a fixed point at a fixed distance.
This could be used, for example, for a shield that orbits around a character in an Action RPG.
SceneComponent subclass and add the following properties to the class declaration:UPROPERTY() bool RotateToFaceOutwards; UPROPERTY() float RotationSpeed; UPROPERTY() float OrbitDistance; float CurrentValue;
RotationSpeed = 5; OrbitDistance = 100; CurrentValue = 0; RotateToFaceOutwards = true;
Read now
Unlock full access