subprotocol / verlet-js

A simple Verlet physics engine written in javascript
Other
3.76k stars 461 forks source link

Native invisible entities handling #18

Open SebastianCrow opened 9 years ago

SebastianCrow commented 9 years ago

Hi,

Way to achieve invisible entities now is assigning empty function to their draw handlers. More intuitive and I'd say "native" way to do so would be allowing undefined, null, etc. value of draw.

What do you think? :)

Best Regards