GameObjectSettings(bpy_struct)

base class — bpy_struct

class bpy.types.GameObjectSettings(bpy_struct)

Game engine related settings for the object

actuators

Game engine actuators to act on events

Type :Collection of Actuator, (readonly)
collision_bounds_type

Selects the collision type

Type :enum in [‘BOX’, ‘SPHERE’, ‘CYLINDER’, ‘CONE’, ‘CONVEX_HULL’, ‘TRIANGLE_MESH’, ‘CAPSULE’], default ‘BOX’
collision_margin

Extra margin around object for collision detection, small amount required for stability

Type :float in [0, 1], default 0.0
controllers

Game engine controllers to process events, connecting sensor to actuators

Type :Collection of Controller, (readonly)
damping

General movement damping

Type :float in [0, 1], default 0.0
form_factor

Form factor scales the inertia tensor

Type :float in [0, 1], default 0.0
friction_coefficients

Relative friction coefficient in the in the X, Y and Z directions, when anisotropic friction is enabled

Type :float array of 3 items in [0, 1], default (0.0, 0.0, 0.0)
lock_location_x

Disable simulation of linear motion along the X axis

Type :boolean, default False
lock_location_y

Disable simulation of linear motion along the Y axis

Type :boolean, default False
lock_location_z

Disable simulation of linear motion along the Z axis

Type :boolean, default False
lock_rotation_x

Disable simulation of angular motion along the X axis

Type :boolean, default False
lock_rotation_y

Disable simulation of angular motion along the Y axis

Type :boolean, default False
lock_rotation_z

Disable simulation of angular motion along the Z axis

Type :boolean, default False
mass

Mass of the object

Type :float in [0.01, 10000], default 0.0
physics_type

Selects the type of physical representation

Type :enum in [‘NO_COLLISION’, ‘STATIC’, ‘DYNAMIC’, ‘RIGID_BODY’, ‘SOFT_BODY’, ‘OCCLUDE’, ‘SENSOR’], default ‘NO_COLLISION’
properties

Game engine properties

Type :Collection of GameProperty, (readonly)
radius

Radius of bounding sphere and material physics

Type :float in [0.01, 10], default 0.0
rotation_damping

General rotation damping

Type :float in [0, 1], default 0.0
sensors

Game engine sensor to detect events

Type :Collection of Sensor, (readonly)
show_actuators

Shows actuators for this object in the user interface

Type :boolean, default False
show_controllers

Shows controllers for this object in the user interface

Type :boolean, default False
show_debug_state

Print state debug info in the game engine

Type :boolean, default False
show_sensors

Shows sensors for this object in the user interface

Type :boolean, default False
show_state_panel

Show state panel

Type :boolean, default False
soft_body

Settings for Bullet soft body simulation

Type :GameSoftBodySettings, (readonly)
states_initial

Initial state when the game starts

Type :boolean array of 30 items, default (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False)
states_visible

State determining which controllers are displayed

Type :boolean array of 30 items, default (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False)
use_activity_culling

Disable simulation of angular motion along the Z axis

Type :boolean, default False
use_actor

Object is detected by the Near and Radar sensor

Type :boolean, default False
use_all_states

Set all state bits

Type :boolean, default False
use_anisotropic_friction

Enable anisotropic friction

Type :boolean, default False
use_collision_bounds

Specify a collision bounds type other than the default

Type :boolean, default False
use_collision_compound

Add children to form a compound collision object

Type :boolean, default False
use_ghost

Object does not restitute collisions, like a ghost

Type :boolean, default False
use_material_physics

Use physics settings in materials

Type :boolean, default False
use_rotate_from_normal

Use face normal to rotate object, so that it points away from the surface

Type :boolean, default False
use_sleep

Disable auto (de)activation in physics simulation

Type :boolean, default False
used_states

States which are being used by controllers

Type :boolean array of 30 items, default (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False), (readonly)
velocity_max

Clamp velocity to this maximum speed

Type :float in [0, 1000], default 0.0
velocity_min

Clamp velocity to this minimum speed (except when totally still)

Type :float in [0, 1000], default 0.0

Inherited Properties

Inherited Functions

References

Previous topic

GameIntProperty(GameProperty)

Next topic

GameProperty(bpy_struct)