Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significantly improve climbing (and add RaycastSweep API along the way) #16

Merged
merged 50 commits into from
Mar 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
78c50de
replace Climber's rayCast variable with "area"
UTheCat Feb 7, 2024
777fa22
add updateArea method to Climber
UTheCat Feb 7, 2024
2905996
apply Climber.updateArea method
UTheCat Feb 7, 2024
ad75866
Merge branch 'main' into better-climbing
UTheCat Feb 7, 2024
07249c1
Create RaycastSweep.cs
UTheCat Feb 12, 2024
3df05a8
add variables to RaycastSweep
UTheCat Feb 12, 2024
f3cfa16
more work on RaycastSweep's layout
UTheCat Feb 17, 2024
5c9224e
more work on RaycastSweep
UTheCat Feb 17, 2024
b7723c0
more work on RaycastSweep
UTheCat Feb 17, 2024
3f01304
more work on RaycastSweep
UTheCat Feb 17, 2024
1e734a9
Create RaycastSweepResults.cs
UTheCat Feb 17, 2024
5b7c2de
rename RaycastSweepResults
UTheCat Feb 17, 2024
e33ed92
adjust climbing hitbox size
UTheCat Feb 17, 2024
37ff712
have RaycastSweepResult list raycast index
UTheCat Mar 10, 2024
dde30a8
more work on RaycastSweep stuff
UTheCat Mar 10, 2024
16330c1
update RaycastSweep documentation
UTheCat Mar 10, 2024
35d2256
Update RaycastSweep.cs
UTheCat Mar 10, 2024
e491e97
add test class for RaycastSweep
UTheCat Mar 10, 2024
8909520
test RaycastSweep
UTheCat Mar 10, 2024
f70a5ab
more work on RaycastSweep stuff
UTheCat Mar 10, 2024
b34c556
fix RaycastSweep and its testing code
UTheCat Mar 10, 2024
16a34ca
allow raycast sweep order to be specified
UTheCat Mar 14, 2024
05fa417
fix RaycastSweep testing code
UTheCat Mar 14, 2024
93d2c5c
fix RaycastSweep
UTheCat Mar 14, 2024
1c132d5
Update Player.cs
UTheCat Mar 14, 2024
4e7fca3
make RaycastSweep more adaptable
UTheCat Mar 14, 2024
d56ec26
Update RaycastSweep.cs
UTheCat Mar 14, 2024
132a003
add more RaycastSweep testing code
UTheCat Mar 14, 2024
fd3ad39
Update Player.cs
UTheCat Mar 14, 2024
46370ea
fix RaycastSweep
UTheCat Mar 14, 2024
b9a9e47
Update Player.cs
UTheCat Mar 14, 2024
6eb7c89
more work on climbing changes
UTheCat Mar 14, 2024
267c407
fix RaycastSweep
UTheCat Mar 14, 2024
2805bdb
improve raycast documentation
UTheCat Mar 14, 2024
b2f1134
Update Player.cs
UTheCat Mar 14, 2024
2dcf8c3
correct RaycastSweep documentation
UTheCat Mar 14, 2024
dccc3d3
allow more customization of climbing hitbox
UTheCat Mar 15, 2024
3271e56
give BaseMover a RaycastSweep
UTheCat Mar 15, 2024
02857b0
Rename "PerformRaycast" method
UTheCat Mar 15, 2024
7d500cd
more work on climbing stuff
UTheCat Mar 15, 2024
7450711
Update BaseMover.cs
UTheCat Mar 15, 2024
fd084a7
more work on climbing stuff
UTheCat Mar 15, 2024
2862aaa
Update BaseMover.cs
UTheCat Mar 15, 2024
4c3545f
more progress on climbing stuff
UTheCat Mar 15, 2024
3f9f7b8
more progress on climbing stuff
UTheCat Mar 15, 2024
ba830f1
attempt to fix climbing stuff
UTheCat Mar 15, 2024
bf11ca6
fix climbing stuff
UTheCat Mar 16, 2024
3b71d46
tweak climbing hitbox
UTheCat Mar 16, 2024
991a1e9
fix climbing stuff even further
UTheCat Mar 16, 2024
2da5097
fix climbing again
UTheCat Mar 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix RaycastSweep
  • Loading branch information
UTheCat committed Mar 14, 2024
commit 267c4071325b8f2c4c444c097cf596db05f16d95
4 changes: 3 additions & 1 deletion src/main/Raycasting/RaycastSweep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ public void UpdateRaycastLayout()
foreach (RayCast3D r in Raycasts)
{
r.Position = currentStartPos;
r.TargetPosition = new Vector3(currentStartPos.X, currentStartPos.Y, currentStartPos.Z + raycastLength);

// Remember that target position is relative to the position of the *raycast itself*.
r.TargetPosition = new Vector3(0, 0, raycastLength);

AddChild(r);

Expand Down