Get Phys Mat properties in 279b

(SugarBoxing) #1


need help to read elasticity value in Physics in materials

Here is what I managed to find so far:

import bge
from bge import logic
from mathutils import Vector

import bpy

D =

cont = logic.getCurrentController()
own = cont.owner

Name =


mat = D.objects[Name].material_slots[0].material

I need something like mat.elasticity or something just to read the value …

please help!