What is faster? Sprcoll() or Boxcoll()

Previous topic - Next topic

Hemlos

Which one is faster? Sprcoll() or Boxcoll()?
Bing ChatGpt is pretty smart :O

Moru

#1
SPRCOLL does a BOXCOLL first for speed reasons so I guess BOXCOLL is faster.

Edit: Did a little test and yes, Boxcoll and Sprcoll are identical in speed as long as there is no collision, when the edges meet, Sprcoll takes about double as long on my computer.

Hemlos

#2
Awesome thanks,
thatll push the PE dynamics engine.

Do you know of a faster way to do this calculation?
Maybe with inline?

Im going to make my own detection with GLBasic, getspritesize embedded, and some if{}+=-thens
Ill call it PIXELSPRCOLL()

Bing ChatGpt is pretty smart :O