Tanoda
AngularSpeedTextBehaviour.cs
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) Ultraleap, Inc. 2011-2020. *
3
* *
4
* Use subject to the terms of the Apache License 2.0 available at *
5
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6
* between Ultraleap and you, your company or other organization. *
7
******************************************************************************/
8
9
using
System.Collections;
10
using
System.Collections.Generic;
11
using
UnityEngine
;
12
13
namespace
Leap.Unity.Examples
{
14
15
[AddComponentMenu(
""
)]
16
public
class
AngularSpeedTextBehaviour
: MonoBehaviour {
17
18
public
TextMesh
textMesh
;
19
public
Spaceship
ship
;
20
public
string
angularSpeedPrefixText
;
21
public
string
angularSpeedPostfixText
;
22
23
void
Update() {
24
textMesh
.text =
angularSpeedPrefixText
+
ship
.
shipAlignedAngularVelocity
.magnitude.ToString(
"G3"
) +
angularSpeedPostfixText
;
25
}
26
27
}
28
29
}
Leap.Unity.Examples.AngularSpeedTextBehaviour
Definition:
AngularSpeedTextBehaviour.cs:16
Leap.Unity.Examples.AngularSpeedTextBehaviour.ship
Spaceship ship
Definition:
AngularSpeedTextBehaviour.cs:19
Leap.Unity.Examples.AngularSpeedTextBehaviour.angularSpeedPrefixText
string angularSpeedPrefixText
Definition:
AngularSpeedTextBehaviour.cs:20
Leap.Unity.Examples.AngularSpeedTextBehaviour.angularSpeedPostfixText
string angularSpeedPostfixText
Definition:
AngularSpeedTextBehaviour.cs:21
Leap.Unity.Examples.AngularSpeedTextBehaviour.textMesh
TextMesh textMesh
Definition:
AngularSpeedTextBehaviour.cs:18
Leap.Unity.Examples.Spaceship
The spaceship in this example is a kinematic rigidbody with a force API, but having a rigidbody on yo...
Definition:
Spaceship.cs:33
Leap.Unity.Examples.Spaceship.shipAlignedAngularVelocity
Vector3 shipAlignedAngularVelocity
Definition:
Spaceship.cs:67
Leap.Unity.Examples
Definition:
InertiaPostProcessProvider.cs:12
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Plugins
LeapMotion
Modules
InteractionEngine
Examples
7. Moving Reference Frames
Scripts
AngularSpeedTextBehaviour.cs
Generated by
1.9.3