-
Notifications
You must be signed in to change notification settings - Fork 2
Project Setup
Tomura edited this page Dec 18, 2021
·
9 revisions
This plugin depends on the following other Plugins:
- VR Expansion Plugin (MordenTral) (MIT Licence)
- ForceTubeVR-Unreal-Engine-Plugin (ProTubeVR) (unknown)
obtain them from their respective repositories and install them to either your engine or project.
The plugin needs a couple of Collision Profiles and Object/Trace Channels to work. It's best to do this on a new project. Otherwise reassign the #defines within TacticalTraceChannels.h and TacticalCollisionProfiles.h to the correct ones and re-compile.
[/Script/Engine.CollisionProfile]
# ... whatever is in your Collision Profiles
+Profiles=(Name="Weapon",CollisionEnabled=QueryAndPhysics,bCanModify=True,ObjectTypeName="Weapon",CustomResponses=((Channel="Pawn",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore)),HelpMessage="Needs description")
+Profiles=(Name="MagInsert",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="MagazineInsert",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Ignore),(Channel="Pawn",Response=ECR_Ignore),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="VRTraceChannel",Response=ECR_Ignore),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="MagazineInsert",Response=ECR_Overlap),(Channel="Weapon",Response=ECR_Ignore)),HelpMessage="Needs description")
+Profiles=(Name="Widget",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="Widget",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Ignore),(Channel="Pawn",Response=ECR_Ignore),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="VRTraceChannel",Response=ECR_Ignore),(Channel="Widget",Response=ECR_Overlap),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="Weapon",Response=ECR_Ignore),(Channel="WidgetTrace")),HelpMessage="Needs description")
+Profiles=(Name="VRGrabSphere",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="Pawn",CustomResponses=((Channel="WorldStatic",Response=ECR_Overlap),(Channel="WorldDynamic",Response=ECR_Overlap),(Channel="Pawn",Response=ECR_Overlap),(Channel="Visibility",Response=ECR_Overlap),(Channel="Camera",Response=ECR_Overlap),(Channel="PhysicsBody",Response=ECR_Overlap),(Channel="Vehicle",Response=ECR_Overlap),(Channel="Destructible",Response=ECR_Overlap),(Channel="VRTraceChannel",Response=ECR_Ignore),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="Weapon",Response=ECR_Ignore),(Channel="InteractVolume",Response=ECR_Overlap)),HelpMessage="Needs description")
+Profiles=(Name="GrenadeSpoon",CollisionEnabled=QueryAndPhysics,bCanModify=True,ObjectTypeName="PhysicsBody",CustomResponses=((Channel="Pawn",Response=ECR_Ignore),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="VRTraceChannel",Response=ECR_Ignore),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="Weapon",Response=ECR_Ignore)),HelpMessage="Needs description")
+Profiles=(Name="Grenade",CollisionEnabled=QueryAndPhysics,bCanModify=True,ObjectTypeName="PhysicsBody",CustomResponses=,HelpMessage="Needs description")
+Profiles=(Name="WeaponEquipped",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="Weapon",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Ignore),(Channel="Pawn",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="Weapon",Response=ECR_Ignore)),HelpMessage="Needs description")
+Profiles=(Name="HoverInteractVolume",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="InteractVolume",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Ignore),(Channel="Pawn",Response=ECR_Overlap),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="VRTraceChannel",Response=ECR_Ignore),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="Weapon",Response=ECR_Ignore)),HelpMessage="Needs description")
+Profiles=(Name="ChargingHandle",CollisionEnabled=QueryAndPhysics,bCanModify=True,ObjectTypeName="Weapon",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Overlap),(Channel="Pawn",Response=ECR_Overlap),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="WeaponTrace",Response=ECR_Ignore),(Channel="Weapon",Response=ECR_Overlap)),HelpMessage="Needs description")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel1,DefaultResponse=ECR_Block,bTraceType=True,bStaticObject=False,Name="VRTraceChannel")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel2,DefaultResponse=ECR_Ignore,bTraceType=True,bStaticObject=False,Name="FloorTrace")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel3,DefaultResponse=ECR_Ignore,bTraceType=False,bStaticObject=False,Name="PawnWalking")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel4,DefaultResponse=ECR_Ignore,bTraceType=False,bStaticObject=False,Name="Widget")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel5,DefaultResponse=ECR_Block,bTraceType=True,bStaticObject=False,Name="WeaponTrace")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel6,DefaultResponse=ECR_Ignore,bTraceType=False,bStaticObject=False,Name="MagazineInsert")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel7,DefaultResponse=ECR_Block,bTraceType=False,bStaticObject=False,Name="Weapon")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel8,DefaultResponse=ECR_Ignore,bTraceType=True,bStaticObject=False,Name="WidgetTrace")
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel9,DefaultResponse=ECR_Ignore,bTraceType=False,bStaticObject=False,Name="InteractVolume")
Do any config you need for a VR project (Instanced Stereo, Forward Shading, disabling rendering features, etc. With this you should be ready to go.