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: "Segmented Raycast" Weapons; a Door to New Possibilities

Previous Thread :: Next Thread 
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 04:42 PM
Those familiar with guns in Roblox should be familiar with something called "Raycast", a gun system that uses rays instead of physics making weapons faster and more stable. There are a few drawbacks to this however; rays cannot be "bent" making it impossible to create something that has an arched path such as a grenade launcher, or something similar to a Rocket launcher that is slow because rays can only travel instantly and cannot be "resized", they are also not the most pleasing in appearance because the best bullet visualization that can be created is limited to a straight line. Rays also do not have a realistic standpoint because bullets do not truly travel instantly, they will actually slow down at long distances, and are affected by gravity causing bullet-drop.

The solution to this? Segmented Raycasting! By splitting a ray into segments, it is possible to do a multitude of adjustments. This allows for real travel over time, arcs, bullet-drop, unique weapons such as Halo's Plasma Rifle or Boomerangs (yes, it comes back to you), weapons that reflect off walls, and even Player launchers! All this is accomplished with great efficiency because it uses rays, instead of physics.

The possibilities of this seem endless! It is impossible for a human brain to comprehend the concept of infinity, therefore if any of you have ideas of what more could be done, please share them with me.

You can see an example of this here (It uses the CreatePlaceAPI so you need to go stand on the green line and you will be teleported to the game after about a 30s)

j.mp/SpaceBears-RBX



P☼id Industries
Report Abuse
Xsitsu is online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
12 Feb 2015 04:43 PM
This isn't anything new.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Feb 2015 04:45 PM
Raycasting is not a gun system, and it does not use rays instead of physics. In fact, it has nothing to do with physics. And of course tl;dr'd (sorry) but cool I guess.
Report Abuse
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 04:50 PM
The fact that you responded within one minute and other minor details, leads me to the conclusion that you barely read anything...

P☼id Industries
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Feb 2015 04:52 PM
It doesn't matter, he's right (no offense, if for whatever reason that offends you).
Report Abuse
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 04:56 PM
On ROBLOX?

P☼id Industries
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Feb 2015 04:58 PM
Yes. Infact, it simply involves cutting up your target raycast into iterations. Not that hard, nothing new.
Report Abuse
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 05:06 PM
You dont need to tell me how to do it cause I already have...

I already made something that already exists...

again...

WHAT WAS THE PURPOSE OF MY LIFE!

P☼id Industries
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Feb 2015 05:10 PM
Idk.

Go innovate. Go make some awesome pathfinding things.
Go make a framework, or a game service.

Go make miracles.
Report Abuse
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 05:22 PM
Greatness is not spurred from pitty.

P☼id Industries
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Feb 2015 05:23 PM
Greatness is not spurred from Roblox.
hahahah inb4hate
Report Abuse
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 05:26 PM
Well, actually, I think it's great for teaching the newcomers. It's easier than
how I learned.

P☼id Industries
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Feb 2015 05:27 PM
Make a module for your iterable raycasts.
Report Abuse
linkoid is not online. linkoid
Joined: 03 Feb 2012
Total Posts: 160
12 Feb 2015 05:30 PM
already did

P☼id Industries
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
12 Feb 2015 05:32 PM
Script your own you ass
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
12 Feb 2015 05:48 PM
Why did you even post this, most of us already know this..
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
12 Feb 2015 06:05 PM
This is actually extremely old.

Reflective raycasting has already been done years ago and there's even a blog article on it:

http://wiki.roblox.com/index.php/Raycasting
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