Advanced Lasers

Advanced Lasers

3.2k Downloads

Query: How to tell if your laser hits my TE?

Opened this issue ยท 2 comments

commented

Hi There,

I'm trying to make a little addon that allows your lasers to be focused at a SGCraft stargate to destroy the iris slowly on the other end, similar to mechanics seen in the tv show.

How would the best way to detect a laser hitting my TileEntity?

Sorry to bother you, I'm pretty new to java, so any tips would be appreciated.
I have spent some time familiarising the myself with SGCraft and have the code ready to add durability to the iris, just need a way to reduce it =D

commented

You could see if the laser's bounding box enters the stargate.

commented

I would say you want to use the ArrayList lasers2 in lasermod.api.LaserCollisionBoxes