2026-02-16
This commit is contained in:
@@ -233,6 +233,18 @@ class MeshObject():
|
||||
pb.init_lib_func(libfunc, [c_void_p, c_float, c_void_p], None)
|
||||
pb.execute_lib_func(libfunc, [self(), float(v)])
|
||||
|
||||
@property
|
||||
def density(self):
|
||||
libfunc = lib.MeshObject_get_density
|
||||
pb.init_lib_func(libfunc, [c_void_p, c_void_p], c_int)
|
||||
return pb.execute_lib_func(libfunc, [self()])
|
||||
|
||||
@density.setter
|
||||
def density(self, v):
|
||||
libfunc = lib.MeshObject_set_density
|
||||
pb.init_lib_func(libfunc, [c_void_p, c_float, c_void_p], None)
|
||||
pb.execute_lib_func(libfunc, [self(), float(v)])
|
||||
|
||||
@property
|
||||
def lifetime(self):
|
||||
libfunc = lib.MeshObject_get_lifetime
|
||||
|
||||
Reference in New Issue
Block a user