youarereadingthis / deadlines

A 2D shooter game for S&box.
https://asset.party/vidya/dead-lines
1 stars 0 forks source link

Make Triangles not have square collision #12

Open youarereadingthis opened 1 year ago

youarereadingthis commented 1 year ago

They don't fly straight at you but rather to the side.

I don't see an issue with the code, so maybe it's due to lack of precision with the methods.

Could use Vector Dot and RotateAroundAxis instead of LookAt and Slerp to solve this.

youarereadingthis commented 1 year ago

Fixed triangle flight path. Mostly. It's still slightly off somehow.

I need to learn to use ModelDoc just a bit so I can create a physics hull from the mesh.