T
tModLoader2y ago
sunny-green

Help with using Collision.CheckAABBvLineCollision()

I created a custom sword based on the ExampleCustomSwingProjectile.cs code found in ExampleMod. (Can be found here): https://github.com/tModLoader/tModLoader/blob/stable/ExampleMod/Content/Projectiles/ExampleCustomSwingProjectile.cs After widening swing rotation to a full 360 degrees, there appear to be some blind spots although visually the sprite covers the respective area. Is it possible to visually check where CheckAABBvLineCollision() is drawing the hitbox to make sure it is lined up correctly with the sprite?
GitHub
tModLoader/ExampleMod/Content/Projectiles/ExampleCustomSwingProject...
A mod to make and play Terraria mods. Supports Terraria 1.4 (and earlier) installations - tModLoader/tModLoader
2 Replies
tModLoader
tModLoader2y ago
Welcome to #support-forum. Before someone helps you, please first consult the information in #TML Troubleshooting Guide and try all the suggestions that might fit your particular issue, especially in the linked FAQ page. If the information in the pinned thread does not solve your issue, please post all log files by dragging and dropping them into this chat. In Steam right click on tModLoader in the library, then hover over Manage and click on Browse local files. In the folder that appears find tModLoader-Logs and open that folder. Inside that folder are the logs files. Select them all except the Old folder and drag them into this chat. If you need a visual guide to this process watch this: https://github.com/tModLoader/tModLoader/assets/4522492/3f4efa43-753f-4733-b630-ba85e711340c
jopojelly
jopojelly2y ago
You'll want to ask in #mod-development or #mod-programming-help . This channel is for non-modder support

Did you find this page helpful?