update hitsystem
This commit is contained in:
		
							parent
							
								
									6ea5c8d975
								
							
						
					
					
						commit
						b002042f5a
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -14,17 +14,31 @@ local M = UnLua.Class() | ||||
| 
 | ||||
| -- function M:UserConstructionScript() | ||||
| -- end | ||||
| function M:PrintQuat(Label, Quat) | ||||
|     print(Label, Quat.X, Quat.Y, Quat.Z, Quat.W) | ||||
| end | ||||
| function M:PrintRot(Label, Rot) | ||||
|     print(Label, Rot.Pitch, Rot.Yaw, Rot.Roll) | ||||
| end | ||||
| local BindKey = UnLua.Input.BindKey | ||||
| BindKey(M, "Q", "Pressed", function(self, Key) | ||||
|     self:CreateNiagara(3) | ||||
|     -- local FVector = UE.FVector | ||||
|     -- local Pos = self:K2_GetActorLocation() | ||||
|     -- print("ouczbs",Pos.x, Pos.y, Pos.z) | ||||
|     -- local NDCWriter = self:CreateNiagara(3) | ||||
|     -- print("ouczbs ????", NDCWriter,Pos.x, Pos.y, Pos.z) | ||||
|     -- NDCWriter:WriteVector("Position", 0, FVector(Pos.x + 10,Pos.y + 10, Pos.z)) | ||||
|     -- NDCWriter:WriteVector("Position", 1, FVector(Pos.x + 20,Pos.y + 10, Pos.z)) | ||||
|     -- NDCWriter:WriteVector("Position", 2, FVector(Pos.x + 30,Pos.y + 10, Pos.z)) | ||||
|     local UKismetMathLibrary = UE.UKismetMathLibrary | ||||
|     local Pitch = 1 | ||||
|     local Yaw = 90 | ||||
|     local Roll = 1 | ||||
|     local Rot = UE.FRotator(Pitch, Yaw, Roll) | ||||
|     local Quat = UKismetMathLibrary.Conv_RotatorToQuaternion(Rot) | ||||
|     local ToRot = UKismetMathLibrary.Quat_Rotator(Quat) | ||||
|     self:PrintRot("Rot", Rot) | ||||
|     self:PrintQuat("Quat", Quat) | ||||
|     self:PrintRot("NewRot", ToRot) | ||||
| 
 | ||||
|     local Euler = UE.FVector(Roll, Pitch, Yaw) | ||||
|     local NewQuat = UKismetMathLibrary.Quat_MakeFromEuler(Euler) | ||||
|     local NewToRot = UKismetMathLibrary.Quat_Rotator(NewQuat) | ||||
|     self:PrintQuat("Euler", Euler) | ||||
|     self:PrintQuat("NewQuat", NewQuat) | ||||
|     self:PrintRot("NewToRot", NewToRot) | ||||
| end) | ||||
| -- function M:ReceiveEndPlay() | ||||
| -- end | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										334
									
								
								UpgradeLog.htm
									
									
									
									
									
								
							
							
						
						
									
										334
									
								
								UpgradeLog.htm
									
									
									
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1731
									
								
								zworld.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1731
									
								
								zworld.sln
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -1,3 +0,0 @@ | ||||
| <wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||||
| 	 | ||||
| 	<s:String x:Key="/Default/Environment/Hierarchy/Build/BuildTool/CustomBuildToolPath/@EntryValue">C:\Program Files\JetBrains\JetBrains Rider 2025.1.2\tools\MSBuild\Current\Bin\amd64\MSBuild.exe</s:String></wpf:ResourceDictionary> | ||||
							
								
								
									
										22
									
								
								zworld.uproject
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								zworld.uproject
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| { | ||||
| 	"FileVersion": 3, | ||||
| 	"EngineAssociation": "5.4", | ||||
| 	"Category": "", | ||||
| 	"Description": "", | ||||
| 	"Modules": [ | ||||
| 		{ | ||||
| 			"Name": "zworld", | ||||
| 			"Type": "Runtime", | ||||
| 			"LoadingPhase": "Default" | ||||
| 		} | ||||
| 	], | ||||
| 	"Plugins": [ | ||||
| 		{ | ||||
| 			"Name": "ModelingToolsEditorMode", | ||||
| 			"Enabled": true, | ||||
| 			"TargetAllowList": [ | ||||
| 				"Editor" | ||||
| 			] | ||||
| 		} | ||||
| 	] | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user