| Thread Previous • Date Previous • Date Next • Thread Next |
Question #692332 on Yade changed:
https://answers.launchpad.net/yade/+question/692332
Status: Open => Answered
Jan Stránský proposed the following answer:
b.mat has to be Material instance
###
m = FrictMat(...)
O.materials.append(m)
b.mat = m
###
have a look at utils.sphere function [1,2] how other parameters (mass,
inertia,position,...) are set
cheers
Jan
[1] https://gitlab.com/yade-dev/trunk/-/blob/master/py/utils.py#L210
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/py/utils.py#L121
--
You received this question notification because your team yade-users is
an answer contact for Yade.
| Thread Previous • Date Previous • Date Next • Thread Next |