IMHOTEP Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Pages
Assets
ThirdParty
SteamVR
InteractionSystem
Longbow
Scripts
ArrowheadRotation.cs
1
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
2
//
3
// Purpose: Sets a random rotation for the arrow head
4
//
5
//=============================================================================
6
7
using
UnityEngine;
8
using
System.Collections;
9
10
namespace
Valve.VR.InteractionSystem
11
{
12
//-------------------------------------------------------------------------
13
public
class
ArrowheadRotation
: MonoBehaviour
14
{
15
//-------------------------------------------------
16
void
Start()
17
{
18
float
randX = Random.Range( 0f, 180f );
19
transform.localEulerAngles =
new
Vector3( randX, -90f, 90f );
20
}
21
}
22
}
Valve.VR.InteractionSystem.ArrowheadRotation
Definition:
ArrowheadRotation.cs:13
Generated by
1.8.6