Skip to content

About

Predicts and visualizes bullet ricochet paths using raycasting, with glass-shattering on impact. Roblox / Luau

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Predictive Bullet Path

Predicts and visualizes bullet ricochet paths using raycasting, with glass-shattering on impact.

Showcase

Features

  • Path Prediction: Simulates bullet trajectory ahead of time using raycasting and reflection off surfaces.
  • Real-Time Visualization: Renders the predicted path and animates the bullet flying along it, segment by segment.
  • Glass Shattering: Breaks glass surfaces into pieces on impact.

Installation

  1. Download Bullet.luau from this repository.
  2. Place it inside your bullet model, alongside BulStart and BulEnd attachments.
  3. Open Place.rbxl to see a working example setup.

Requirements

The script expects two Attachment instances as siblings:

  • BulStart — where the bullet starts.
  • BulEnd — where the bullet ends (fired direction).

About

Predicts and visualizes bullet ricochet paths using raycasting, with glass-shattering on impact. Roblox / Luau

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages