of     1   

PhoenixSigns
#183513958Saturday, February 13, 2016 5:09 PM GMT

Is there a way to increase the width of the ray? I have a projectile that's 3x3x3 and since the ray is infinitively small, if the projectile scrapes a player, the damage wouldn't register.
indeimaus
#183514032Saturday, February 13, 2016 5:11 PM GMT

use projectiles instead of raycasting at that point
x_o
#183514044Saturday, February 13, 2016 5:11 PM GMT

nop you could try doing multiple raycasts "is you dermon?" ~ morashsPeasant
JarodOfOrbiter
#183514313Saturday, February 13, 2016 5:15 PM GMT

Technically, rays don't have length either :P
PhoenixSigns
#183515688Saturday, February 13, 2016 5:38 PM GMT

^ Ik they don't, but like imaginary width.
PhoenixSigns
#183515961Saturday, February 13, 2016 5:42 PM GMT

Bump anyone?
JarodOfOrbiter
#183516025Saturday, February 13, 2016 5:43 PM GMT

Well you can't do this, but you can raycast multiple times.
PhoenixSigns
#183516207Saturday, February 13, 2016 5:45 PM GMT

Damn. So have maybe 9 raycasts to cover the size?
TickerOfTime
#183516771Saturday, February 13, 2016 5:52 PM GMT

You should just be able to do four. Cast along the edges. ~ Shakespeare's Soggy Left Nut
PhoenixSigns
#183519495Saturday, February 13, 2016 6:34 PM GMT

I'll need one more for the middle though.
TickerOfTime
#183519617Saturday, February 13, 2016 6:35 PM GMT

True. ~ Shakespeare's Soggy Left Nut
PhoenixSigns
#183519953Saturday, February 13, 2016 6:40 PM GMT

How do you position the rays so it covers the sides?
TickerOfTime
#183559972Sunday, February 14, 2016 3:32 AM GMT

Act you're making a ray from the center, but offset it half the height and half the width, making some negative and some positive to get all four corners.
pinballboy7
#183562223Sunday, February 14, 2016 4:02 AM GMT

You could create a hitbox and then then use a raycast to see if there's nothing in the way.
izzatnasruna
#183565864Sunday, February 14, 2016 5:00 AM GMT

What do you mean 'scrapes a player' ?
crouton04
#183568630Sunday, February 14, 2016 5:50 AM GMT

Why raycasting for this?
morashsPeasant
#183569758Sunday, February 14, 2016 6:13 AM GMT

@CrescentJade, because a CFramed BasePart doesn't fire the .Touched event.
PhoenixSigns
#183587465Sunday, February 14, 2016 3:25 PM GMT

^^ Actually I'm rendering projectiles locally so less lag. And anyways, I finished scripting my raycast for this yesterday. I have 5 rays to check for collision now. 1 in the center, and 4 in the corners.

    of     1