399
426
.. data:: KX_SENSOR_ACTIVE
400
427
.. data:: KX_SENSOR_JUST_DEACTIVATED
433
.. _armaturesensor-type:
435
See :class:`bge.types.KX_ArmatureSensor.type`
437
.. data:: KX_ARMSENSOR_STATE_CHANGED
439
Detect that the constraint is changing state (active/inactive)
443
.. data:: KX_ARMSENSOR_LIN_ERROR_BELOW
445
Detect that the constraint linear error is above a threshold
449
.. data:: KX_ARMSENSOR_LIN_ERROR_ABOVE
451
Detect that the constraint linear error is below a threshold
455
.. data:: KX_ARMSENSOR_ROT_ERROR_BELOW
457
Detect that the constraint rotation error is above a threshold
461
.. data:: KX_ARMSENSOR_ROT_ERROR_ABOVE
463
Detect that the constraint rotation error is below a threshold
402
468
.. _logic-property-sensor:
481
547
.. data:: KX_ACTIONACT_LOOPEND
482
548
.. data:: KX_ACTIONACT_PROPERTY
554
.. _armatureactuator-constants-type:
556
See :class:`bge.types.BL_ArmatureActuator.type`
558
.. data:: KX_ACT_ARMATURE_RUN
560
Just make sure the armature will be updated on the next graphic frame.
561
This is the only persistent mode of the actuator:
562
it executes automatically once per frame until stopped by a controller
566
.. data:: KX_ACT_ARMATURE_ENABLE
568
Enable the constraint.
572
.. data:: KX_ACT_ARMATURE_DISABLE
574
Disable the constraint (runtime constraint values are not updated).
578
.. data:: KX_ACT_ARMATURE_SETTARGET
580
Change target and subtarget of constraint.
584
.. data:: KX_ACT_ARMATURE_SETWEIGHT
586
Change weight of constraint (IK only).
590
.. data:: KX_ACT_ARMATURE_SETINFLUENCE
592
Change influence of constraint.
484
596
-------------------
485
597
Constraint Actuator
486
598
-------------------
492
604
* Applicable to Distance constraint:
494
.. data:: KX_ACT_CONSTRAINT_NORMAL
606
.. data:: KX_CONSTRAINTACT_NORMAL
496
608
Activate alignment to surface
498
.. data:: KX_ACT_CONSTRAINT_DISTANCE
610
.. data:: KX_CONSTRAINTACT_DISTANCE
500
612
Activate distance control
502
.. data:: KX_ACT_CONSTRAINT_LOCAL
614
.. data:: KX_CONSTRAINTACT_LOCAL
504
616
Direction of the ray is along the local axis
506
618
* Applicable to Force field constraint:
508
.. data:: KX_ACT_CONSTRAINT_DOROTFH
620
.. data:: KX_CONSTRAINTACT_DOROTFH
510
622
Force field act on rotation as well
512
624
* Applicable to both:
514
.. data:: KX_ACT_CONSTRAINT_MATERIAL
626
.. data:: KX_CONSTRAINTACT_MATERIAL
516
628
Detect material rather than property
518
.. data:: KX_ACT_CONSTRAINT_PERMANENT
630
.. data:: KX_CONSTRAINTACT_PERMANENT
520
632
No deactivation if ray does not hit target
584
696
Set orientation of Z axis
586
.. data:: KX_ACT_CONSTRAINT_FHNX
698
.. data:: KX_CONSTRAINTACT_FHNX
588
700
Set force field along negative X axis
590
.. data:: KX_ACT_CONSTRAINT_FHNY
702
.. data:: KX_CONSTRAINTACT_FHNY
592
704
Set force field along negative Y axis
594
.. data:: KX_ACT_CONSTRAINT_FHNZ
706
.. data:: KX_CONSTRAINTACT_FHNZ
596
708
Set force field along negative Z axis
598
.. data:: KX_ACT_CONSTRAINT_FHPX
710
.. data:: KX_CONSTRAINTACT_FHPX
600
712
Set force field along positive X axis
602
.. data:: KX_ACT_CONSTRAINT_FHPY
714
.. data:: KX_CONSTRAINTACT_FHPY
604
716
Set force field along positive Y axis
606
.. data:: KX_ACT_CONSTRAINT_FHPZ
718
.. data:: KX_CONSTRAINTACT_FHPZ
608
720
Set force field along positive Z axis
706
818
.. data:: KX_SOUNDACT_LOOPBIDIRECTIONAL_STOP
826
.. _logic-steering-actuator:
828
See :class:`bge.types.KX_SteeringActuator.behavior`
830
.. data:: KX_STEERING_SEEK
834
.. data:: KX_STEERING_FLEE
838
.. data:: KX_STEERING_PATHFOLLOWING
851
.. data:: RAS_2DFILTER_BLUR
855
.. data:: RAS_2DFILTER_CUSTOMFILTER
857
Customer filter, the code code is set via shaderText property.
861
.. data:: RAS_2DFILTER_DILATION
865
.. data:: RAS_2DFILTER_DISABLED
867
Disable the filter that is currently active
871
.. data:: RAS_2DFILTER_ENABLED
873
Enable the filter that was previously disabled
877
.. data:: RAS_2DFILTER_EROSION
881
.. data:: RAS_2DFILTER_GRAYSCALE
885
.. data:: RAS_2DFILTER_INVERT
889
.. data:: RAS_2DFILTER_LAPLACIAN
893
.. data:: RAS_2DFILTER_MOTIONBLUR
895
Create and enable preset filters
899
.. data:: RAS_2DFILTER_NOFILTER
901
Disable and destroy the filter that is currently active
905
.. data:: RAS_2DFILTER_PREWITT
909
.. data:: RAS_2DFILTER_SEPIA
913
.. data:: RAS_2DFILTER_SHARPEN
917
.. data:: RAS_2DFILTER_SOBEL
924
.. _armaturechannel-constants-rotation-mode:
926
See :class:`bge.types.BL_ArmatureChannel.rotation_mode`
929
euler mode are named as in Blender UI but the actual axis order is reversed
931
.. data:: ROT_MODE_QUAT
933
Use quaternion in rotation attribute to update bone rotation.
937
.. data:: ROT_MODE_XYZ
939
Use euler_rotation and apply angles on bone's Z, Y, X axis successively.
943
.. data:: ROT_MODE_XZY
945
Use euler_rotation and apply angles on bone's Y, Z, X axis successively.
949
.. data:: ROT_MODE_YXZ
951
Use euler_rotation and apply angles on bone's Z, X, Y axis successively.
955
.. data:: ROT_MODE_YZX
957
Use euler_rotation and apply angles on bone's X, Z, Y axis successively.
961
.. data:: ROT_MODE_ZXY
963
Use euler_rotation and apply angles on bone's Y, X, Z axis successively.
967
.. data:: ROT_MODE_ZYX
969
Use euler_rotation and apply angles on bone's X, Y, Z axis successively.
977
.. _armatureconstraint-constants-type:
979
See :class:`bge.types.BL_ArmatureConstraint.type`
981
.. data:: CONSTRAINT_TYPE_TRACKTO
982
.. data:: CONSTRAINT_TYPE_KINEMATIC
983
.. data:: CONSTRAINT_TYPE_ROTLIKE
984
.. data:: CONSTRAINT_TYPE_LOCLIKE
985
.. data:: CONSTRAINT_TYPE_MINMAX
986
.. data:: CONSTRAINT_TYPE_SIZELIKE
987
.. data:: CONSTRAINT_TYPE_LOCKTRACK
988
.. data:: CONSTRAINT_TYPE_STRETCHTO
989
.. data:: CONSTRAINT_TYPE_CLAMPTO
990
.. data:: CONSTRAINT_TYPE_TRANSFORM
991
.. data:: CONSTRAINT_TYPE_DISTLIMIT
993
.. _armatureconstraint-constants-ik-type:
995
See :class:`bge.types.BL_ArmatureConstraint.ik_type`
997
.. data:: CONSTRAINT_IK_COPYPOSE
999
constraint is trying to match the position and eventually the rotation of the target.
1003
.. data:: CONSTRAINT_IK_DISTANCE
1005
Constraint is maintaining a certain distance to target subject to ik_mode
1009
.. _armatureconstraint-constants-ik-flag:
1011
See :class:`bge.types.BL_ArmatureConstraint.ik_flag`
1013
.. data:: CONSTRAINT_IK_FLAG_TIP
1015
Set when the constraint operates on the head of the bone and not the tail
1019
.. data:: CONSTRAINT_IK_FLAG_ROT
1021
Set when the constraint tries to match the orientation of the target
1025
.. data:: CONSTRAINT_IK_FLAG_STRETCH
1027
Set when the armature is allowed to stretch (only the bones with stretch factor > 0.0)
1031
.. data:: CONSTRAINT_IK_FLAG_POS
1033
Set when the constraint tries to match the position of the target.
1037
.. _armatureconstraint-constants-ik-mode:
1039
See :class:`bge.types.BL_ArmatureConstraint.ik_mode`
1041
.. data:: CONSTRAINT_IK_MODE_INSIDE
1043
The constraint tries to keep the bone within ik_dist of target
1047
.. data:: CONSTRAINT_IK_MODE_OUTSIDE
1049
The constraint tries to keep the bone outside ik_dist of the target
1053
.. data:: CONSTRAINT_IK_MODE_ONSURFACE
1055
The constraint tries to keep the bone exactly at ik_dist of the target.
715
1059
.. _input-status:
1065
.. data:: BL_DST_ALPHA
1066
.. data:: BL_DST_COLOR
1068
.. data:: BL_ONE_MINUS_DST_ALPHA
1069
.. data:: BL_ONE_MINUS_DST_COLOR
1070
.. data:: BL_ONE_MINUS_SRC_ALPHA
1071
.. data:: BL_ONE_MINUS_SRC_COLOR
1072
.. data:: BL_SRC_ALPHA
1073
.. data:: BL_SRC_ALPHA_SATURATE
1074
.. data:: BL_SRC_COLOR
735
1121
.. data:: KX_MOUSE_BUT_MIDDLE
736
1122
.. data:: KX_MOUSE_BUT_RIGHT
1124
--------------------------
1125
Navigation Mesh Draw Modes
1126
--------------------------
1128
.. _navmesh-draw-mode:
1132
Draw only the walls.
1146
.. data:: VIEWMATRIX
1147
.. data:: VIEWMATRIX_INVERSE
1148
.. data:: VIEWMATRIX_INVERSETRANSPOSE
1149
.. data:: VIEWMATRIX_TRANSPOSE
1150
.. data:: MODELMATRIX
1151
.. data:: MODELMATRIX_INVERSE
1152
.. data:: MODELMATRIX_INVERSETRANSPOSE
1153
.. data:: MODELMATRIX_TRANSPOSE
1154
.. data:: MODELVIEWMATRIX
1155
.. data:: MODELVIEWMATRIX_INVERSE
1156
.. data:: MODELVIEWMATRIX_INVERSETRANSPOSE
1157
.. data:: MODELVIEWMATRIX_TRANSPOSE
1160
Current camera position
1162
.. data:: CONSTANT_TIMER
1164
User a timer for the uniform value.
1166
.. data:: SHD_TANGENT
779
1209
.. data:: KX_STATE_OP_CLR
781
1211
Substract bits to state mask
785
1215
.. data:: KX_STATE_OP_CPY
791
1221
.. data:: KX_STATE_OP_NEG
793
1223
Invert bits to state mask
797
1227
.. data:: KX_STATE_OP_SET
799
1229
Add bits to state mask
803
1233
.. _Two-D-FilterActuator-mode:
809
.. data:: RAS_2DFILTER_BLUR
813
.. data:: RAS_2DFILTER_CUSTOMFILTER
815
Customer filter, the code code is set via shaderText property.
819
.. data:: RAS_2DFILTER_DILATION
823
.. data:: RAS_2DFILTER_DISABLED
825
Disable the filter that is currently active
829
.. data:: RAS_2DFILTER_ENABLED
831
Enable the filter that was previously disabled
835
.. data:: RAS_2DFILTER_EROSION
839
.. data:: RAS_2DFILTER_GRAYSCALE
843
.. data:: RAS_2DFILTER_INVERT
847
.. data:: RAS_2DFILTER_LAPLACIAN
851
.. data:: RAS_2DFILTER_MOTIONBLUR
853
Create and enable preset filters
857
.. data:: RAS_2DFILTER_NOFILTER
859
Disable and destroy the filter that is currently active
863
.. data:: RAS_2DFILTER_PREWITT
867
.. data:: RAS_2DFILTER_SEPIA
871
.. data:: RAS_2DFILTER_SHARPEN
875
.. data:: RAS_2DFILTER_SOBEL
884
.. data:: VIEWMATRIX_INVERSE
885
.. data:: VIEWMATRIX_INVERSETRANSPOSE
886
.. data:: VIEWMATRIX_TRANSPOSE
887
.. data:: MODELMATRIX
888
.. data:: MODELMATRIX_INVERSE
889
.. data:: MODELMATRIX_INVERSETRANSPOSE
890
.. data:: MODELMATRIX_TRANSPOSE
891
.. data:: MODELVIEWMATRIX
892
.. data:: MODELVIEWMATRIX_INVERSE
893
.. data:: MODELVIEWMATRIX_INVERSETRANSPOSE
894
.. data:: MODELVIEWMATRIX_TRANSPOSE
897
Current camera position
899
.. data:: CONSTANT_TIMER
901
User a timer for the uniform value.
903
.. data:: SHD_TANGENT
909
.. data:: BL_DST_ALPHA
910
.. data:: BL_DST_COLOR
912
.. data:: BL_ONE_MINUS_DST_ALPHA
913
.. data:: BL_ONE_MINUS_DST_COLOR
914
.. data:: BL_ONE_MINUS_SRC_ALPHA
915
.. data:: BL_ONE_MINUS_SRC_COLOR
916
.. data:: BL_SRC_ALPHA
917
.. data:: BL_SRC_ALPHA_SATURATE
918
.. data:: BL_SRC_COLOR