Fix size calculation on laser shot entity - closes #104
Need to set collisionRadius on entity to get render pass culling to work May be a few other purely visual entities that have similar problems.
This commit is contained in:
parent
e40fc68afc
commit
fc591c9895
@ -99,7 +99,7 @@ static OOTexture *sShotTexture2 = nil;
|
||||
|
||||
[self setOrientation:quaternion_multiply(q,q0)];
|
||||
[self setOwner:ship];
|
||||
_range = [srcEntity weaponRange];
|
||||
[self setRange:[srcEntity weaponRange]];
|
||||
_lifetime = kLaserDuration;
|
||||
|
||||
_color[0] = kLaserRed/3.0;
|
||||
@ -146,6 +146,7 @@ static OOTexture *sShotTexture2 = nil;
|
||||
- (void) setRange:(GLfloat)range
|
||||
{
|
||||
_range = range;
|
||||
[self setCollisionRadius:range];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user