mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
Merge pull request #2964 from YeldhamDev/vr_tutorial_fixup
Small consistency fixes for the VR tutorial pages
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
VR Starer tutorial
|
||||
==================
|
||||
VR starter tutorial
|
||||
===================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:name: doc_vr_starter_tutorial
|
||||
|
||||
vr_starter_tutorial_part_one
|
||||
vr_starter_tutorial_part_two
|
||||
vr_starter_tutorial_part_two
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.. _doc_vr_starter_tutorial_part_one:
|
||||
|
||||
VR Starter Tutorial Part One
|
||||
============================
|
||||
VR starter tutorial part 1
|
||||
==========================
|
||||
|
||||
Introduction
|
||||
------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.. _doc_vr_starter_tutorial_part_two:
|
||||
|
||||
VR Starter Tutorial Part Two
|
||||
============================
|
||||
VR starter tutorial part 2
|
||||
==========================
|
||||
|
||||
Introduction
|
||||
------------
|
||||
@@ -523,7 +523,7 @@ and the collision force is the ``collision_force`` variable we calculated.
|
||||
|
||||
_________________
|
||||
|
||||
Once all of the :ref:`Raycast <class_Raycast>`s in the ``raycast`` variable have been iterated over, we then play the shotgun shot sound by calling the ``play`` function on the ``shotgun_fire_sound`` variable.
|
||||
Once all of the :ref:`Raycast <class_Raycast>`\s in the ``raycast`` variable have been iterated over, we then play the shotgun shot sound by calling the ``play`` function on the ``shotgun_fire_sound`` variable.
|
||||
|
||||
Finally, we check to see if the shotgun is being held by a VR controller by checking to see if the ``controller`` variable is not equal to ``null``. If it is not equal to ``null``,
|
||||
we then set the ``rumble`` property of the VR controller to ``0.25``, so there is a slight rumble when the shotgun fires.
|
||||
|
||||
Reference in New Issue
Block a user