generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Increasing Width Of Raycasts

Previous Thread :: Next Thread 
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
13 Feb 2016 11:09 AM
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.
Report Abuse
indeimaus is not online. indeimaus
Joined: 01 Sep 2014
Total Posts: 4285
13 Feb 2016 11:11 AM
use projectiles instead of raycasting at that point
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
13 Feb 2016 11:11 AM
nop

you could try doing multiple raycasts

"is you dermon?" ~ morashsPeasant
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
13 Feb 2016 11:15 AM
Technically, rays don't have length either :P


Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
13 Feb 2016 11:38 AM
^
Ik they don't, but like imaginary width.
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
13 Feb 2016 11:42 AM
Bump anyone?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
13 Feb 2016 11:43 AM
Well you can't do this, but you can raycast multiple times.


Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
13 Feb 2016 11:45 AM
Damn. So have maybe 9 raycasts to cover the size?
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
13 Feb 2016 11:52 AM
You should just be able to do four. Cast along the edges.


~ Shakespeare's Soggy Left Nut
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
13 Feb 2016 12:34 PM
I'll need one more for the middle though.
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
13 Feb 2016 12:35 PM
True.


~ Shakespeare's Soggy Left Nut
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
13 Feb 2016 12:40 PM
How do you position the rays so it covers the sides?
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
13 Feb 2016 09:32 PM
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.
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
13 Feb 2016 10:02 PM
You could create a hitbox and then then use a raycast to see if there's nothing in the way.
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
13 Feb 2016 11:00 PM
What do you mean 'scrapes a player' ?
Report Abuse
CrescentJade is not online. CrescentJade
Joined: 07 Jul 2010
Total Posts: 5494
13 Feb 2016 11:50 PM
Why raycasting for this?
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
14 Feb 2016 12:13 AM
@CrescentJade, because a CFramed BasePart doesn't fire the .Touched event.
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
14 Feb 2016 09:25 AM
^^
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.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image