《UE4游戏开发》之 《常用的函数接口》

一 、AActor
1. 获取Actor的速度

/** Returns velocity (in cm/s (Unreal Units/second) of the rootcomponent if it is either using physics or has an associated MovementComponent */
	UFUNCTION(BlueprintCallable, Category="Utilities|Transformation")
	virtual FVector GetVelocity() const;

二、UGameplayStatics
1. 获取每帧的时间

/** Returns the frame delta time in seconds, adjusted by time dilation. */
	UFUNCTION(BlueprintPure, Category = "Utilities|Time", meta = (WorldContext="WorldContextObject"))
	static float GetWorldDeltaSeconds(const UObject* WorldContextObject);

猜你喜欢

转载自blog.csdn.net/qq_21919621/article/details/106943451