Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

physics.body + mask = crash

in Bugs Posts: 41
  local b=physics.body(POLYGON,vec2(10,10),vec2(10,10),vec2(10,10))
  b.mask={1} -- crash

Comments

  • Posts: 324

    i can confirm the crash happens, but it seems more related to the fact that the vectors do not create a shape,

    local b=physics.body(POLYGON,vec2(10,10),vec2(10,11),vec2(11,11))
    b.mask={1} -- no crash
    
    
    
  • Posts: 41

    True, but the crash only happen (during my tests) with both lines of code.

    local b=physics.body(POLYGON,vec2(10,10),vec2(10,10),vec2(10,10))
    -- no crash
    
Sign In or Register to comment.