Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scotty3D
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Courses
Scotty3D
Commits
6476b883
Unverified
Commit
6476b883
authored
3 years ago
by
Max Slater
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update particles.cpp
parent
5eb12946
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/student/particles.cpp
+3
-3
3 additions, 3 deletions
src/student/particles.cpp
with
3 additions
and
3 deletions
src/student/particles.cpp
+
3
−
3
View file @
6476b883
...
...
@@ -10,10 +10,10 @@ bool Scene_Particles::Particle::update(const PT::Object& scene, float dt, float
// (1) Build a ray representing the particle's path if it travelled at constant velocity.
// (2) Intersect the ray with the scene and account for collisions. Be careful when plac
e
// collision points
based on
the particle radius. Move the particle to its next position.
// (2) Intersect the ray with the scene and account for collisions. Be careful when plac
ing
// collision points
using
the particle radius. Move the particle to its next position.
// (3) Account for acceleration.
// (3) Account for acceleration
due to gravity
.
// (4) Repeat until the entire time step has been consumed.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment