Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bge.types.BL_ArmatureBone.rst « bge_types « rst « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0200c9c513bddcca115407cfb7c7135ecb391829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
BL_ArmatureBone(PyObjectPlus)
=============================

base class --- :class:`PyObjectPlus`

.. class:: BL_ArmatureBone(PyObjectPlus)

   Proxy to Blender bone structure. All fields are read-only and comply to RNA names.
   All space attribute correspond to the rest pose.

   .. attribute:: name

      bone name.

      :type: string

   .. attribute:: connected

      true when the bone head is struck to the parent's tail.

      :type: boolean

   .. attribute:: hinge

      true when bone doesn't inherit rotation or scale from parent bone.

      :type: boolean

   .. attribute:: inherit_scale

      true when bone inherits scaling from parent bone.

      :type: boolean

   .. attribute:: bbone_segments

      number of B-bone segments.

      :type: integer

   .. attribute:: roll

      bone rotation around head-tail axis.

      :type: float

   .. attribute:: head

      location of head end of the bone in parent bone space.

      :type: vector [x, y, z]

   .. attribute:: tail

      location of head end of the bone in parent bone space.

      :type: vector [x, y, z]

   .. attribute:: length

      bone length.

      :type: float

   .. attribute:: arm_head

      location of head end of the bone in armature space.

      :type: vector [x, y, z]

   .. attribute:: arm_tail

      location of tail end of the bone in armature space.

      :type: vector [x, y, z]

   .. attribute:: arm_mat

      matrix of the bone head in armature space.

      :type: matrix [4][4]

      .. note::
      
         This matrix has no scale part. 

   .. attribute:: bone_mat

      rotation matrix of the bone in parent bone space.

      :type: matrix [3][3]

   .. attribute:: parent

      parent bone, or None for root bone.

      :type: :class:`BL_ArmatureBone`

   .. attribute:: children

      list of bone's children.

      :type: list of :class:`BL_ArmatureBone`