0
点赞
收藏
分享

微信扫一扫

UE4-ProjectOnToNormal

兽怪海北 2022-02-10 阅读 42
ue4c++接口
//Vector.h
	/**
	 * Gets a copy of this vector projected onto the input vector, which is assumed to be unit length.
	 * 
	 * @param  Normal Vector to project onto (assumed to be unit length).
	 * @return Projected vector.
	 */
	FORCEINLINE FVector ProjectOnToNormal(const FVector& Normal) const;

FORCEINLINE FVector FVector::ProjectOnToNormal(const FVector& Normal) const
{
	return (Normal * (*this | Normal));
}

/**
* 获取投影到输入向量上的该向量的副本,假定为单位长度。
*
* @param 要投影到的法线向量(假定为单位长度)。
* @return 投影向量。
*/

举报

相关推荐

UE4调试UE4Editor-Cmd.exe

UE4 动画

UE4/UE5 动画控制

UE4问题

UE4 PixelStreamingDemo 验证

ue4无法编译

UE4 UI记录

UE4简易QTE

UE4添加碰撞

0 条评论