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

bge.types.KX_ArmatureSensor.rst « bge_types « rst « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca617395a69c1171a88567a6f1f1e4455cfd9184 (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
KX_ArmatureSensor(SCA_ISensor)
==============================

base class --- :class:`SCA_ISensor`

.. class:: KX_ArmatureSensor(SCA_ISensor)

   Armature sensor detect conditions on armatures.

   .. attribute:: type

      The type of measurement that the sensor make when it is active.
      
      Can be one of :ref:`these constants <armaturesensor-type>`

      :type: integer.

   .. attribute:: constraint

      The constraint object this sensor is watching.

      :type: :class:`BL_ArmatureConstraint`

   .. attribute:: value
   
      The threshold used in the comparison with the constraint error
      The linear error is only updated on CopyPose/Distance IK constraint with iTaSC solver
      The rotation error is only updated on CopyPose+rotation IK constraint with iTaSC solver
      The linear error on CopyPose is always >= 0: it is the norm of the distance between the target and the bone
      The rotation error on CopyPose is always >= 0: it is the norm of the equivalent rotation vector between the bone and the target orientations
      The linear error on Distance can be positive if the distance between the bone and the target is greater than the desired distance, and negative if the distance is smaller.

      :type: float