MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / pre_collide

Method pre_collide

src/SB/Core/x/xLaserBolt.cpp:191–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void xLaserBoltEmitter::pre_collide(bolt& b)
192{
193 xVec3 origin;
194 xVec3 dir;
195 xCollis coll;
196
197 origin = b.origin;
198 dir = b.dir;
199 xRayHitsSceneFlags(globals.sceneCur, (xRay3*)&origin, &coll, XENT_COLLTYPE_PLYR, 0x22);
200
201 if (coll.flags & 0x1)
202 {
203 b.hit_dist = coll.dist;
204 b.hit_norm = coll.norm;
205 }
206
207 log_collide_statics(coll.flags & 0x1);
208}
209
210void xLaserBoltEmitter::collide_update(bolt& b)
211{

Callers

nothing calls this directly

Calls 1

xRayHitsSceneFlagsFunction · 0.70

Tested by

no test coverage detected