Hello everyone.
I notice that there are no Shape::SetFriction, Shape::SetRestitution, etc. Why is that? How bad is it to change these attributes after they're created?
The reason I ask is because I'm creating a Lua wrapper for Box2D, and instead of:
I want:
So ... how doomed am I if I change these?
I notice that there are no Shape::SetFriction, Shape::SetRestitution, etc. Why is that? How bad is it to change these attributes after they're created?
The reason I ask is because I'm creating a Lua wrapper for Box2D, and instead of:
Code:
circle = newCircle(friction, restitution, density, x, y, radius)
I want:
Code:
circle = newCircle(x, y, radius)
circle:setFriction(f)
... etc
circle:setFriction(f)
... etc
So ... how doomed am I if I change these?