What is the return value of Ammo._malloc

Post Reply
Mr.jiang
Posts: 1
Joined: Fri Jul 16, 2021 3:12 pm

What is the return value of Ammo._malloc

Post by Mr.jiang »

A question about the ported version of bullets javascript,What is the return value of Ammo._malloc, I don't understand why it is necessary to shift right by 2 bits

Code: Select all

 ammoHeightData + p2 >>2 
who knows
Snipaste_2021-07-16_23-28-00.png
Snipaste_2021-07-16_23-28-00.png (28.16 KiB) Viewed 15998 times
Post Reply