Template Struct type_caster< kd::PhysicalBodyParams >#

Struct Documentation#

template<>
struct type_caster<kd::PhysicalBodyParams>#

Convert PhysicalBodyParams values to and from Python PhysicalBodyParams DataStructs.

Public Functions

PYBIND11_TYPE_CASTER (std::optional< kd::PhysicalBodyParams >, const_name("Karana.Dynamics._params.PhysicalBodyParams"))

Type caster to use to convert PhysicalBodyParams.

inline operator const kd::PhysicalBodyParams&() const#

Get a PhysicalBodyParams reference from this caster.

Returns:

A PhysicalBodyParams reference.

inline operator kd::PhysicalBodyParams&()#

Get a PhysicalBodyParams reference from this caster.

Returns:

A PhysicalBodyParams reference.

inline bool load(handle src, bool)#

Load PhysicalBodyParams from its Python DataStruct.

Parameters:

src – The Python DataStruct to turn into PhysicalBodyParams.

Returns:

The PhysicalBodyParams created from the DataStruct.

Public Static Functions

static inline handle cast(const kd::PhysicalBodyParams &src, return_value_policy, handle)#

Cast PhysicalBodyParams to its Python DataStruct.

Parameters:

src – The C++ PhysicalBodyParams to turn into the Python DataStruct.

Returns:

The Python DataStruct associated with the C++ object.