Joint
.axis
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Joint
Joint
.axis
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Joint
All Members
Variables
anchor
axis
breakForce
breakTorque
connectedBody
Messages Sent
OnJointBreak
Inherited Variables
animation
audio
camera
collider
constantForce
gameObject
guiText
guiTexture
hideFlags
hingeJoint
light
name
networkView
particleEmitter
renderer
rigidbody
tag
transform
Inherited Functions
BroadcastMessage
CompareTag
GetComponent
GetComponent.<T>
GetComponentInChildren
GetComponentInChildren.<T>
GetComponents
GetComponents.<T>
GetComponentsInChildren
GetComponentsInChildren.<T>
GetInstanceID
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
var
axis :
Vector3
Description
The Direction of the axis around which the body is constrained.
The Axis is defined in local space.
JavaScripts
JavaScript
C#
Boo
hingeJoint.axis =
Vector3.up
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
hingeJoint.axis =
Vector3.up
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
hingeJoint.axis =
Vector3.up