I want to change the mass of collision. I use go.set()
go.set("#collision", "Mass", 5)
And I got this error
'#collision' does not have any property called 'Mass'
But it work when I use go.get()
go.get("collision", "mass") -- 'M' not work. Must be 'm'
go.set("#collision", “mass”, 5) not work too. Why?
Just took a quick look at the source for the collision object component, it appears this is a read-only value. Looks like our newly updated API documentation does not show if properties are read-only or not, we will look into this.
Documentation is updating with this missing information! It should be available in a minute or two.