LEFT | RIGHT |
1 | 1 |
2 Game Types (bge.types) | 2 Game Types (bge.types) |
3 ====================== | 3 ====================== |
4 | 4 |
5 .. module:: bge.types | 5 .. module:: bge.types |
6 | 6 |
7 .. class:: PyObjectPlus | 7 .. class:: PyObjectPlus |
8 | 8 |
9 PyObjectPlus base class of most other types in the Game Engine. | 9 PyObjectPlus base class of most other types in the Game Engine. |
10 | 10 |
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 If the object is a part of a combound object it will fail (parent or ch
ild) | 1543 If the object is a part of a combound object it will fail (parent or ch
ild) |
1544 | 1544 |
1545 .. warning:: | 1545 .. warning:: |
1546 | 1546 |
1547 Rebuilding the physics mesh can be slow, running many times per second
will give a performance hit. | 1547 Rebuilding the physics mesh can be slow, running many times per second
will give a performance hit. |
1548 | 1548 |
1549 .. method:: get(key, default=None) | 1549 .. method:: get(key, default=None) |
1550 | 1550 |
1551 Return the value matching key, or the default value if its not found. | 1551 Return the value matching key, or the default value if its not found. |
1552 :return: The key value or a default. | 1552 :return: The key value or a default. |
| 1553 |
| 1554 .. method:: playAction(name, start_frame, end_frame, layer=0, priority=0, ble
ndin=0, play_mode=ACT_MODE_PLAY, layer_weight=0.0, ipo_flags=0, speed=1.0) |
| 1555 |
| 1556 Plays an action. |
| 1557 ······ |
| 1558 :arg name: the name of the action |
| 1559 :type name: string |
| 1560 :arg start: the start frame of the action |
| 1561 :type start: float |
| 1562 :arg end: the end frame of the action |
| 1563 :type end: float |
| 1564 :arg layer: the layer the action will play in (actions in different layers
are added/blended together) |
| 1565 :type layer: integer |
| 1566 :arg priority: only play this action if there isn't an action currently pl
aying in this layer with a higher (lower number) priority |
| 1567 :type priority: integer |
| 1568 :arg blendin: the amount of blending between this animation and the previo
us one on this layer |
| 1569 :type blendin: float |
| 1570 :arg play_mode: the play mode |
| 1571 :type play_mode: KX_ACTION_MODE_PLAY, KX_ACTION_MODE_LOOP, or KX_ACTION_MO
DE_PING_PONG |
| 1572 :arg layer_weight: how much of the previous layer to use for blending (0 =
add) |
| 1573 :type layer_weight: float |
| 1574 :arg ipo_flags: flags for the old IPO behaviors (force, etc) |
| 1575 :type ipo_flags: int bitfield |
| 1576 :arg speed: the playback speed of the action as a factor (1.0 = normal spe
ed, 2.0 = 2x speed, etc) |
| 1577 :type speed: float |
| 1578 |
| 1579 .. method:: stopAction(layer=0) |
| 1580 ······ |
| 1581 Stop playing the action on the given layer. |
| 1582 ······ |
| 1583 :arg layer: The layer to stop playing. |
| 1584 :type layer: integer |
| 1585 ······ |
| 1586 .. method:: getActionFrame(layer=0) |
| 1587 ··· |
| 1588 Gets the current frame of the action playing in the supplied layer. |
| 1589 ······ |
| 1590 :arg layer: The layer that you want to get the frame from. |
| 1591 :type layer: integer |
| 1592 ······ |
| 1593 :return: The current frame of the action |
| 1594 :rtype: float |
| 1595 ······ |
| 1596 .. method:: setActionFrame(frame, layer=0) |
| 1597 ··· |
| 1598 Set the current frame of the action playing in the supplied layer. |
| 1599 ······ |
| 1600 :arg layer: The layer where you want to set the frame |
| 1601 :type layer: integer |
| 1602 :arg frame: The frame to set the action to |
| 1603 :type frame: float |
| 1604 |
| 1605 .. method:: isPlayingAction(layer=0) |
| 1606 ··· |
| 1607 Checks to see if there is an action playing in the given layer. |
| 1608 ······· |
| 1609 :arg layer: The layer to check for a playing action. |
| 1610 :type layer: integer |
| 1611 ······· |
| 1612 :return: Whether or not the action is playing |
| 1613 :rtype: boolean |
1553 | 1614 |
1554 .. class:: KX_IpoActuator(SCA_IActuator) | 1615 .. class:: KX_IpoActuator(SCA_IActuator) |
1555 | 1616 |
1556 IPO actuator activates an animation. | 1617 IPO actuator activates an animation. |
1557 | 1618 |
1558 .. attribute:: frameStart | 1619 .. attribute:: frameStart |
1559 | 1620 |
1560 Start frame. | 1621 Start frame. |
1561 | 1622 |
1562 :type: float | 1623 :type: float |
(...skipping 3664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5227 | 5288 |
5228 parent bone, or None for root bone. | 5289 parent bone, or None for root bone. |
5229 | 5290 |
5230 :type: :class:`BL_ArmatureBone` | 5291 :type: :class:`BL_ArmatureBone` |
5231 | 5292 |
5232 .. attribute:: children | 5293 .. attribute:: children |
5233 | 5294 |
5234 list of bone's children. | 5295 list of bone's children. |
5235 | 5296 |
5236 :type: list of :class:`BL_ArmatureBone` | 5297 :type: list of :class:`BL_ArmatureBone` |
LEFT | RIGHT |