I am looking for a simple blueprint where i can simply click and drag rotate my static mesh? just like this one
http://www.kevs3d.co.uk/dev/html5logo/
Can you please let me know how i will make this?
Many thanks
I am looking for a simple blueprint where i can simply click and drag rotate my static mesh? just like this one
http://www.kevs3d.co.uk/dev/html5logo/
Can you please let me know how i will make this?
Many thanks
Hey, just whipped this up for you.
Cheers!
Thanks alot cybereality for your hard work, as i have copied your blueprint its working fine but i am facing two problems,
First when i click the rotation is working for only one side, i want to work both sides, x and y.
Second, when i click on screen any where the object rotates i want it to work when i click and drag, if x then it rotates to x side, and if i click and drag y to it rotates y Side…???
Ok, try this:
Basically I just added another variable float to track the y motion (dragSumY) and duplicated the get mouse logic to track the y as well.
I also changed “add actor local rotation” to “add actor world rotation” to avoid strange behavior when upside-down.
Hope that helps.
many thanks for your reply and update, after doing that it rotates in same way one side but with strange axis?
here is what i have done.
The math you are doing on the bottom isn’t the same as mine, and I’m not sure what it’s supposed to be doing.
Specifically that “Get Mouse Y” should be subtracting from “Drag Sum Y” (you have %, percent symbol).
You also have another “%” symbol where I had a “X” (multiply) and you are “+” (adding) 12 (which is not what I was doing).
I’d try to mimic the picture I posted exactly, and then let me know if you still have issues.
Thanks alot i did the same. now it works great…
You are awesome for helping out cybereality
but I couldn’t help cringe that you didn’t select all nodes, then (Ctr+C) copy, and paste into the forum as text.
Then OP, could just copy and paste that into the blueprint to create exactly what you had.
Hope that helps you in future
Thanks, Transmitthis. I didn’t realize that was possible. Here it is:
Begin Object Class=K2Node_Literal Name="K2Node_Literal_1"
Begin Object Class=EdGraphPin Name="EdGraphPin_2509"
End Object
Begin Object Name="EdGraphPin_2509"
PinName="StaticMeshActor-1"
PinFriendlyName="StaticMeshActor-1"
Direction=EGPD_Output
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.StaticMeshActor')
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2176.EdGraphPin_2830'
End Object
ObjectRef=StaticMeshActor'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default:PersistentLevel.MyCube'
Pins(0)=EdGraphPin'EdGraphPin_2509'
NodePosX=1728
NodePosY=1328
NodeGuid=3AEB38C34A05A1055294BD99C7A5292F
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_506"
Begin Object Class=EdGraphPin Name="EdGraphPin_2578"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2579"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2580"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2581"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2582"
End Object
Begin Object Name="EdGraphPin_2578"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_InputKey_152.EdGraphPin_2601'
End Object
Begin Object Name="EdGraphPin_2579"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_2580"
PinName="isDragging"
PinType=(PinCategory="bool")
DefaultValue="true"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_2581"
PinName="Output_Get"
PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
Direction=EGPD_Output
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_2582"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="isDragging",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2578'
Pins(1)=EdGraphPin'EdGraphPin_2579'
Pins(2)=EdGraphPin'EdGraphPin_2580'
Pins(3)=EdGraphPin'EdGraphPin_2581'
Pins(4)=EdGraphPin'EdGraphPin_2582'
NodePosX=1456
NodePosY=912
NodeGuid=93F05C5549D227C504A86AB0FC039AFA
End Object
Begin Object Class=K2Node_InputKey Name="K2Node_InputKey_152"
Begin Object Class=EdGraphPin Name="EdGraphPin_2601"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2602"
End Object
Begin Object Name="EdGraphPin_2601"
PinName="Pressed"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_506.EdGraphPin_2578'
End Object
Begin Object Name="EdGraphPin_2602"
PinName="Released"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_504.EdGraphPin_2607'
End Object
InputKey=LeftMouseButton
Pins(0)=EdGraphPin'EdGraphPin_2601'
Pins(1)=EdGraphPin'EdGraphPin_2602'
NodePosX=1168
NodePosY=928
NodeGuid=99C6472746C2F5EE815BC58D0932BB84
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_504"
Begin Object Class=EdGraphPin Name="EdGraphPin_2607"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2608"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2609"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2610"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2611"
End Object
Begin Object Name="EdGraphPin_2607"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_InputKey_152.EdGraphPin_2602'
End Object
Begin Object Name="EdGraphPin_2608"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_675.EdGraphPin_2696'
End Object
Begin Object Name="EdGraphPin_2609"
PinName="isDragging"
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_2610"
PinName="Output_Get"
PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
Direction=EGPD_Output
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_2611"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="isDragging",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2607'
Pins(1)=EdGraphPin'EdGraphPin_2608'
Pins(2)=EdGraphPin'EdGraphPin_2609'
Pins(3)=EdGraphPin'EdGraphPin_2610'
Pins(4)=EdGraphPin'EdGraphPin_2611'
NodePosX=1456
NodePosY=1008
NodeGuid=9728667D4DF479E79D6A0D9DFEF01376
End Object
Begin Object Class=K2Node_Event Name="K2Node_Event_176"
Begin Object Class=EdGraphPin Name="EdGraphPin_2622"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2623"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2624"
End Object
Begin Object Name="EdGraphPin_2622"
PinName="OutputDelegate"
Direction=EGPD_Output
PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParentClass=Class'/Script/Engine.Actor',MemberName="ReceiveTick"))
End Object
Begin Object Name="EdGraphPin_2623"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_IfThenElse_3.EdGraphPin_2633'
End Object
Begin Object Name="EdGraphPin_2624"
PinName="DeltaSeconds"
PinToolTip="Delta Seconds
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_41.EdGraphPin_2725'
LinkedTo(1)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_28.EdGraphPin_2776'
End Object
EventSignatureName="ReceiveTick"
EventSignatureClass=Class'/Script/Engine.Actor'
bOverrideFunction=True
Pins(0)=EdGraphPin'EdGraphPin_2622'
Pins(1)=EdGraphPin'EdGraphPin_2623'
Pins(2)=EdGraphPin'EdGraphPin_2624'
NodePosX=960
NodePosY=1072
NodeGuid=95D6300A4C91C4248CA2CCB16F71503E
End Object
Begin Object Class=K2Node_IfThenElse Name="K2Node_IfThenElse_3"
Begin Object Class=EdGraphPin Name="EdGraphPin_2633"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2634"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2635"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2636"
End Object
Begin Object Name="EdGraphPin_2633"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_Event_176.EdGraphPin_2623'
End Object
Begin Object Name="EdGraphPin_2634"
PinName="Condition"
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="true"
LinkedTo(0)=EdGraphPin'K2Node_VariableGet_1124.EdGraphPin_2645'
End Object
Begin Object Name="EdGraphPin_2635"
PinName="then"
PinFriendlyName="true"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_63.EdGraphPin_2675'
End Object
Begin Object Name="EdGraphPin_2636"
PinName="else"
PinFriendlyName="false"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Pins(0)=EdGraphPin'EdGraphPin_2633'
Pins(1)=EdGraphPin'EdGraphPin_2634'
Pins(2)=EdGraphPin'EdGraphPin_2635'
Pins(3)=EdGraphPin'EdGraphPin_2636'
NodePosX=1184
NodePosY=1088
NodeGuid=97C99EE0473DA537E4825E9D35BA6363
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_1124"
Begin Object Class=EdGraphPin Name="EdGraphPin_2645"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2646"
End Object
Begin Object Name="EdGraphPin_2645"
PinName="isDragging"
Direction=EGPD_Output
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
LinkedTo(0)=EdGraphPin'K2Node_IfThenElse_3.EdGraphPin_2634'
End Object
Begin Object Name="EdGraphPin_2646"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="isDragging",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2645'
Pins(1)=EdGraphPin'EdGraphPin_2646'
NodePosX=976
NodePosY=1184
NodeGuid=9D680ECD4E46FE991EC12594CAE751A7
End Object
Begin Object Class=K2Node_GetInputAxisKeyValue Name="K2Node_GetInputAxisKeyValue_20"
Begin Object Class=EdGraphPin Name="EdGraphPin_2651"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2652"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2653"
End Object
Begin Object Name="EdGraphPin_2651"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Actor Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')
End Object
Begin Object Name="EdGraphPin_2652"
PinName="InputAxisKey"
PinToolTip="Input Axis Key
Key Structure"
PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/InputCore.InputCoreTypes:Key',bIsConst=True)
DefaultValue="MouseX"
bHidden=True
End Object
Begin Object Name="EdGraphPin_2653"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_1961.EdGraphPin_2713'
End Object
InputAxisKey=MouseX
bIsPureFunc=True
bIsConstFunc=True
FunctionReference=(MemberName="GetInputAxisKeyValue",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2651'
Pins(1)=EdGraphPin'EdGraphPin_2652'
Pins(2)=EdGraphPin'EdGraphPin_2653'
NodePosX=816
NodePosY=1360
NodeGuid=E44BA7F64EA77372B0396887D659EC8F
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2139"
Begin Object Class=EdGraphPin Name="EdGraphPin_2660"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2661"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2662"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2663"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2664"
End Object
Begin Object Name="EdGraphPin_2660"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2661"
PinName="Pitch"
PinToolTip="Pitch
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_38.EdGraphPin_2789'
End Object
Begin Object Name="EdGraphPin_2662"
PinName="Yaw"
PinToolTip="Yaw
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_42.EdGraphPin_2738'
End Object
Begin Object Name="EdGraphPin_2663"
PinName="Roll"
PinToolTip="Roll
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2664"
PinName="ReturnValue"
PinToolTip="Return Value
Rotator "
Direction=EGPD_Output
PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Object:Rotator')
DefaultValue="0, 0, 0"
AutogeneratedDefaultValue="0, 0, 0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2176.EdGraphPin_2831'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="MakeRot")
Pins(0)=EdGraphPin'EdGraphPin_2660'
Pins(1)=EdGraphPin'EdGraphPin_2661'
Pins(2)=EdGraphPin'EdGraphPin_2662'
Pins(3)=EdGraphPin'EdGraphPin_2663'
Pins(4)=EdGraphPin'EdGraphPin_2664'
NodePosX=1904
NodePosY=1392
NodeGuid=D81CB91B4E08C061D0F30D852549BCC3
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_63"
Begin Object Class=EdGraphPin Name="EdGraphPin_2675"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2676"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2677"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2678"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2679"
End Object
Begin Object Name="EdGraphPin_2675"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_IfThenElse_3.EdGraphPin_2635'
End Object
Begin Object Name="EdGraphPin_2676"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_65.EdGraphPin_2813'
End Object
Begin Object Name="EdGraphPin_2677"
PinName="dragSumX"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_1961.EdGraphPin_2714'
End Object
Begin Object Name="EdGraphPin_2678"
PinName="Output_Get"
PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_41.EdGraphPin_2724'
End Object
Begin Object Name="EdGraphPin_2679"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="dragSumX",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2675'
Pins(1)=EdGraphPin'EdGraphPin_2676'
Pins(2)=EdGraphPin'EdGraphPin_2677'
Pins(3)=EdGraphPin'EdGraphPin_2678'
Pins(4)=EdGraphPin'EdGraphPin_2679'
NodePosX=1328
NodePosY=1280
NodeGuid=3C1937594BD11A9FA0F1F2A565D80C14
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_45"
Begin Object Class=EdGraphPin Name="EdGraphPin_2690"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2691"
End Object
Begin Object Name="EdGraphPin_2690"
PinName="dragSumX"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_1961.EdGraphPin_2712'
End Object
Begin Object Name="EdGraphPin_2691"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="dragSumX",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2690'
Pins(1)=EdGraphPin'EdGraphPin_2691'
NodePosX=912
NodePosY=1296
NodeGuid=273B59744AC52FD09FA929A1119F0BB7
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_675"
Begin Object Class=EdGraphPin Name="EdGraphPin_2696"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2697"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2698"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2699"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2700"
End Object
Begin Object Name="EdGraphPin_2696"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_504.EdGraphPin_2608'
End Object
Begin Object Name="EdGraphPin_2697"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_49.EdGraphPin_2747'
End Object
Begin Object Name="EdGraphPin_2698"
PinName="dragSumX"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2699"
PinName="Output_Get"
PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2700"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="dragSumX",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2696'
Pins(1)=EdGraphPin'EdGraphPin_2697'
Pins(2)=EdGraphPin'EdGraphPin_2698'
Pins(3)=EdGraphPin'EdGraphPin_2699'
Pins(4)=EdGraphPin'EdGraphPin_2700'
NodePosX=1696
NodePosY=992
NodeGuid=7839CB0C48BC745885BC66BD6BC8B25B
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_1961"
Begin Object Class=EdGraphPin Name="EdGraphPin_2711"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2712"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2713"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2714"
End Object
Begin Object Name="EdGraphPin_2711"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2712"
PinName="A"
PinToolTip="A
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_VariableGet_45.EdGraphPin_2690'
End Object
Begin Object Name="EdGraphPin_2713"
PinName="B"
PinToolTip="B
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_GetInputAxisKeyValue_20.EdGraphPin_2653'
End Object
Begin Object Name="EdGraphPin_2714"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_63.EdGraphPin_2677'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="Subtract_FloatFloat")
Pins(0)=EdGraphPin'EdGraphPin_2711'
Pins(1)=EdGraphPin'EdGraphPin_2712'
Pins(2)=EdGraphPin'EdGraphPin_2713'
Pins(3)=EdGraphPin'EdGraphPin_2714'
NodePosX=1136
NodePosY=1328
NodeGuid=C703576745A2FB79EAD91A93614502B5
End Object
Begin Object Class=K2Node_CommutativeAssociativeBinaryOperator Name="K2Node_CommutativeAssociativeBinaryOperator_41"
Begin Object Class=EdGraphPin Name="EdGraphPin_2723"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2724"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2725"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2726"
End Object
Begin Object Name="EdGraphPin_2723"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2724"
PinName="A"
PinToolTip="A
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_63.EdGraphPin_2678'
End Object
Begin Object Name="EdGraphPin_2725"
PinName="B"
PinToolTip="B
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_Event_176.EdGraphPin_2624'
End Object
Begin Object Name="EdGraphPin_2726"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_42.EdGraphPin_2736'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="Multiply_FloatFloat")
Pins(0)=EdGraphPin'EdGraphPin_2723'
Pins(1)=EdGraphPin'EdGraphPin_2724'
Pins(2)=EdGraphPin'EdGraphPin_2725'
Pins(3)=EdGraphPin'EdGraphPin_2726'
NodePosX=1536
NodePosY=1408
NodeGuid=800CA3F4414F1092103EE3B7B11BD722
End Object
Begin Object Class=K2Node_CommutativeAssociativeBinaryOperator Name="K2Node_CommutativeAssociativeBinaryOperator_42"
Begin Object Class=EdGraphPin Name="EdGraphPin_2735"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2736"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2737"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2738"
End Object
Begin Object Name="EdGraphPin_2735"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2736"
PinName="A"
PinToolTip="A
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_41.EdGraphPin_2726'
End Object
Begin Object Name="EdGraphPin_2737"
PinName="B"
PinToolTip="B
Float"
PinType=(PinCategory="float")
DefaultValue="12"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2738"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2139.EdGraphPin_2662'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="Multiply_FloatFloat")
Pins(0)=EdGraphPin'EdGraphPin_2735'
Pins(1)=EdGraphPin'EdGraphPin_2736'
Pins(2)=EdGraphPin'EdGraphPin_2737'
Pins(3)=EdGraphPin'EdGraphPin_2738'
NodePosX=1680
NodePosY=1408
NodeGuid=909B6FD64B00043CC8158D854EAEAD81
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_49"
Begin Object Class=EdGraphPin Name="EdGraphPin_2747"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2748"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2749"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2750"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2751"
End Object
Begin Object Name="EdGraphPin_2747"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_675.EdGraphPin_2697'
End Object
Begin Object Name="EdGraphPin_2748"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_2749"
PinName="dragSumY"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2750"
PinName="Output_Get"
PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2751"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="dragSumY",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2747'
Pins(1)=EdGraphPin'EdGraphPin_2748'
Pins(2)=EdGraphPin'EdGraphPin_2749'
Pins(3)=EdGraphPin'EdGraphPin_2750'
Pins(4)=EdGraphPin'EdGraphPin_2751'
NodePosX=1904
NodePosY=992
NodeGuid=2D3EBE474914CE1B3F3178AFD0E15D39
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2463"
Begin Object Class=EdGraphPin Name="EdGraphPin_2762"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2763"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2764"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2765"
End Object
Begin Object Name="EdGraphPin_2762"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2763"
PinName="A"
PinToolTip="A
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_VariableGet_47.EdGraphPin_2798'
End Object
Begin Object Name="EdGraphPin_2764"
PinName="B"
PinToolTip="B
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_GetInputAxisKeyValue_21.EdGraphPin_2806'
End Object
Begin Object Name="EdGraphPin_2765"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_65.EdGraphPin_2815'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="Subtract_FloatFloat")
Pins(0)=EdGraphPin'EdGraphPin_2762'
Pins(1)=EdGraphPin'EdGraphPin_2763'
Pins(2)=EdGraphPin'EdGraphPin_2764'
Pins(3)=EdGraphPin'EdGraphPin_2765'
NodePosX=1216
NodePosY=1520
NodeGuid=5CEE1AA8410A99C4328AFFA99F70A3DA
End Object
Begin Object Class=K2Node_CommutativeAssociativeBinaryOperator Name="K2Node_CommutativeAssociativeBinaryOperator_28"
Begin Object Class=EdGraphPin Name="EdGraphPin_2774"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2775"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2776"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2777"
End Object
Begin Object Name="EdGraphPin_2774"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2775"
PinName="A"
PinToolTip="A
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_65.EdGraphPin_2816'
End Object
Begin Object Name="EdGraphPin_2776"
PinName="B"
PinToolTip="B
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_Event_176.EdGraphPin_2624'
End Object
Begin Object Name="EdGraphPin_2777"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_38.EdGraphPin_2787'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="Multiply_FloatFloat")
Pins(0)=EdGraphPin'EdGraphPin_2774'
Pins(1)=EdGraphPin'EdGraphPin_2775'
Pins(2)=EdGraphPin'EdGraphPin_2776'
Pins(3)=EdGraphPin'EdGraphPin_2777'
NodePosX=1504
NodePosY=1616
NodeGuid=AB02D8404E7331FE1DCFE881B32111E1
End Object
Begin Object Class=K2Node_CommutativeAssociativeBinaryOperator Name="K2Node_CommutativeAssociativeBinaryOperator_38"
Begin Object Class=EdGraphPin Name="EdGraphPin_2786"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2787"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2788"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2789"
End Object
Begin Object Name="EdGraphPin_2786"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Kismet Math Library Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
DefaultObject=Default__KismetMathLibrary
bHidden=True
End Object
Begin Object Name="EdGraphPin_2787"
PinName="A"
PinToolTip="A
Float"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_28.EdGraphPin_2777'
End Object
Begin Object Name="EdGraphPin_2788"
PinName="B"
PinToolTip="B
Float"
PinType=(PinCategory="float")
DefaultValue="12"
AutogeneratedDefaultValue="0.0"
End Object
Begin Object Name="EdGraphPin_2789"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2139.EdGraphPin_2661'
End Object
bIsPureFunc=True
FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="Multiply_FloatFloat")
Pins(0)=EdGraphPin'EdGraphPin_2786'
Pins(1)=EdGraphPin'EdGraphPin_2787'
Pins(2)=EdGraphPin'EdGraphPin_2788'
Pins(3)=EdGraphPin'EdGraphPin_2789'
NodePosX=1648
NodePosY=1616
NodeGuid=5C550176412D7255AD34B996123C949A
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_47"
Begin Object Class=EdGraphPin Name="EdGraphPin_2798"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2799"
End Object
Begin Object Name="EdGraphPin_2798"
PinName="dragSumY"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2463.EdGraphPin_2763'
End Object
Begin Object Name="EdGraphPin_2799"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="dragSumY",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2798'
Pins(1)=EdGraphPin'EdGraphPin_2799'
NodePosX=1024
NodePosY=1472
NodeGuid=D38CFC82413DAEDE146893BB17C8DC72
End Object
Begin Object Class=K2Node_GetInputAxisKeyValue Name="K2Node_GetInputAxisKeyValue_21"
Begin Object Class=EdGraphPin Name="EdGraphPin_2804"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2805"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2806"
End Object
Begin Object Name="EdGraphPin_2804"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Actor Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')
End Object
Begin Object Name="EdGraphPin_2805"
PinName="InputAxisKey"
PinToolTip="Input Axis Key
Key Structure"
PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/InputCore.InputCoreTypes:Key',bIsConst=True)
DefaultValue="MouseY"
bHidden=True
End Object
Begin Object Name="EdGraphPin_2806"
PinName="ReturnValue"
PinToolTip="Return Value
Float"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2463.EdGraphPin_2764'
End Object
InputAxisKey=MouseY
bIsPureFunc=True
bIsConstFunc=True
FunctionReference=(MemberName="GetInputAxisKeyValue",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2804'
Pins(1)=EdGraphPin'EdGraphPin_2805'
Pins(2)=EdGraphPin'EdGraphPin_2806'
NodePosX=880
NodePosY=1552
NodeGuid=C9B94E834B746E3740B0BD8A7C5BF0AF
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_65"
Begin Object Class=EdGraphPin Name="EdGraphPin_2813"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2814"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2815"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2816"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2817"
End Object
Begin Object Name="EdGraphPin_2813"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_63.EdGraphPin_2676'
End Object
Begin Object Name="EdGraphPin_2814"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2176.EdGraphPin_2828'
End Object
Begin Object Name="EdGraphPin_2815"
PinName="dragSumY"
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2463.EdGraphPin_2765'
End Object
Begin Object Name="EdGraphPin_2816"
PinName="Output_Get"
PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
Direction=EGPD_Output
PinType=(PinCategory="float")
DefaultValue="0.0"
AutogeneratedDefaultValue="0.0"
LinkedTo(0)=EdGraphPin'K2Node_CommutativeAssociativeBinaryOperator_28.EdGraphPin_2775'
End Object
Begin Object Name="EdGraphPin_2817"
PinName="self"
PinFriendlyName="Target"
PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/StarterContent/Maps/Minimal_Default.Minimal_Default_C')
bHidden=True
End Object
VariableReference=(MemberName="dragSumY",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2813'
Pins(1)=EdGraphPin'EdGraphPin_2814'
Pins(2)=EdGraphPin'EdGraphPin_2815'
Pins(3)=EdGraphPin'EdGraphPin_2816'
Pins(4)=EdGraphPin'EdGraphPin_2817'
NodePosX=1376
NodePosY=1504
NodeGuid=04A1DDEE40B57869EF090C89CA360BC0
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2176"
Begin Object Class=EdGraphPin Name="EdGraphPin_2828"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2829"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2830"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2831"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2832"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_2833"
End Object
Begin Object Name="EdGraphPin_2828"
PinName="execute"
PinType=(PinCategory="exec")
LinkedTo(0)=EdGraphPin'K2Node_VariableSet_65.EdGraphPin_2814'
End Object
Begin Object Name="EdGraphPin_2829"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_2830"
PinName="self"
PinFriendlyName="Target"
PinToolTip="Target
Actor Reference"
PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')
LinkedTo(0)=EdGraphPin'K2Node_Literal_1.EdGraphPin_2509'
End Object
Begin Object Name="EdGraphPin_2831"
PinName="DeltaRotation"
PinToolTip="Delta Rotation
Rotator
The change in rotation."
PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Object:Rotator')
DefaultValue="0, 0, 0"
AutogeneratedDefaultValue="0, 0, 0"
LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2139.EdGraphPin_2664'
End Object
Begin Object Name="EdGraphPin_2832"
PinName="bSweep"
PinToolTip="Sweep
Boolean
Whether to sweep to the target rotation (not currently supported)."
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
bAdvancedView=True
End Object
Begin Object Name="EdGraphPin_2833"
PinName="SweepHitResult"
PinToolTip="Sweep Hit Result
Hit Result Structure
The hit result from the move if swept."
Direction=EGPD_Output
PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/Engine.EngineTypes:HitResult')
bAdvancedView=True
End Object
FunctionReference=(MemberName="K2_AddActorWorldRotation",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_2828'
Pins(1)=EdGraphPin'EdGraphPin_2829'
Pins(2)=EdGraphPin'EdGraphPin_2830'
Pins(3)=EdGraphPin'EdGraphPin_2831'
Pins(4)=EdGraphPin'EdGraphPin_2832'
Pins(5)=EdGraphPin'EdGraphPin_2833'
NodePosX=2016
NodePosY=1216
NodeGuid=8F1CB9354AD54F97DEE45BA5CBF31CCC
AdvancedPinDisplay=Hidden
End Object
Hi all, im trying to create the exact same as jahan2x wanted however I’m trying to create it for tablet interaction.
I’ve copied the above however it does not seem to work?
I’m new to unreal so any help would be greatly appreciated!
Most of the project templates have some kind of touch interface implemented im sure you could just look at those and change the inputs from mouse to touch input and it should work.
Changing the input from mouse to touch is straight forward enough however I cant get the above blueprint to work at all?
I dunno, I’ve never messed with the touch input, there’s an option inside of playercontroller class defaults that says Enable Touch Events, are your touch events working at all?
Yeah they work, I’ve created a player controller and game mode that enables mouse/touch events and they work on a basic touch to move nothing else will work.
The blue print above wont work when even if I just create an actor blueprint. - Perhaps my set up is wrong, I don’t suppose you would know how to get the above blue print to work at all?
Well, did you get it working with the mouse? mines working
I made the blueprint stuck it on an actor,
enabled input,
set the player controller,
made a game mode that sets the custom player controller BP to the default player controller for the game mode
set the mesh from static to moveable
after doing that it worked
Basically you just need to make sure that you’re getting actual values from your touch input, as long as it’s giving you numbers you just plug it into the funtions.
If you’re still having trouble getting it working you can message me on skype: mkn665 and im sure we could get it working
I still haven’t got it working, I must be missing something because I’ve done what you’ve stated above.
Thanks for agreeing to help me, I’ve added you on Skype.
Hi,
I’m trying to use your explanations tu make a simple clic&drag rotation on a cube.
Since I use the 4.9.2 version, some things have to be changed in the blueprint, such as the float - float functions.
I modified the Cube’s blueprint with your suggestions and created the variables there ; the only way to detect leftclick while playing is to change the “LeftMouseButton” event and put OnClick(Cube) and OnReleased(Cube) Events instead. When clicking, the variable is set to true, the event tick sends informations to “AddActorWorldRotation” function but nothing happens there and the cube doesn’t rotate.
I’ve correctly (i guess…) set up the gamemode, using a playercontroller allowing the cursor.
I dunno if I had to put some of these blueprint scripts in the level blueprint or so ?
Thanks a lot.