blenderproc.python.types.InertialUtility module

class blenderproc.python.types.InertialUtility.Inertial(bpy_object)[source]

Bases: blenderproc.python.types.EntityUtility.Entity

get_inertia()[source]

Returns the inertia.

Return type:ndarray
Returns:The inertia matrix.
get_mass()[source]

Returns the mass of the link.

Return type:float
Returns:The mass.
get_origin()[source]

Returns the origin of the inertia.

Return type:Matrix
Returns:The pose relative to the link frame.
hide(hide_object=True)[source]

Sets the visibility of the object.

Parameters:hide_object (bool) – Determines whether the object should be hidden in rendering.
set_inertia(inertia)[source]

Sets inertia value.

Parameters:inertia (ndarray) – 3x3 symmetric rotational inertia matrix.
set_mass(mass)[source]

Sets the mass.

Parameters:mass (float) – Mass of the link in kilograms.
set_origin(origin)[source]

Sets the origin and the world matrix of the inertia.

Parameters:origin (Union[ndarray, Matrix]) – 4x4 matrix of the inertials relative to the link frame.