UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"methods to control rotation of spacecraft"
// Control the Rotation of a Spacecraft void ASpacecraft::TurnRight(float Value) { AddActorWorldRotation(FRotator(0.0f, Value, 0.0f)); } void ASpacecraft::TurnLeft(float Value) { AddActorWorldRotation(FRotator(0.0f, -Value, 0.0f)); } void ASpacecraft::PitchUp(float Value) { AddActorWorldRotation(FRotator(Value, 0.0f, 0.0f)); } void ASpacecraft::PitchDown(float Value) { AddActorWorldRotation(FRotator(-Value, 0.0f, 0.0f)); }