Compare commits

..

2 Commits

Author SHA1 Message Date
70ba220d45 use minted crates 2024-09-30 10:34:08 -07:00
760771ff5a ugly but correct fix 2024-09-30 09:44:30 -07:00
3 changed files with 20 additions and 15 deletions

29
Cargo.lock generated

@ -623,7 +623,8 @@ checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da"
[[package]]
name = "fixed_wide"
version = "0.1.0"
source = "git+https://git.itzana.me/StrafesNET/fixed_wide_vectors?rev=438d0ec6ec4ae97d13d950ea317ce324dd205e10#438d0ec6ec4ae97d13d950ea317ce324dd205e10"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "7a8d6e10c51c9df39ead915c62288afbc41d13e00368e526037e530ee5c58e13"
dependencies = [
"arrayvec",
"bnum",
@ -952,7 +953,8 @@ dependencies = [
[[package]]
name = "linear_ops"
version = "0.1.0"
source = "git+https://git.itzana.me/StrafesNET/fixed_wide_vectors?rev=438d0ec6ec4ae97d13d950ea317ce324dd205e10#438d0ec6ec4ae97d13d950ea317ce324dd205e10"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "b2e6977ac24f47086d8a7a2d4ae1c720e86dfdc8407cf5e34c18bfa01053c456"
dependencies = [
"fixed_wide",
"paste",
@ -1594,7 +1596,8 @@ checksum = "9c8a99fddc9f0ba0a85884b8d14e3592853e787d581ca1816c91349b10e4eeab"
[[package]]
name = "ratio_ops"
version = "0.1.0"
source = "git+https://git.itzana.me/StrafesNET/fixed_wide_vectors?rev=438d0ec6ec4ae97d13d950ea317ce324dd205e10#438d0ec6ec4ae97d13d950ea317ce324dd205e10"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "01239195d6afe0509e7e3511b716c0540251dfe7ece0a9a5a27116afb766c42c"
[[package]]
name = "raw-window-handle"
@ -1922,7 +1925,7 @@ dependencies = [
"parking_lot",
"pollster",
"strafesnet_bsp_loader",
"strafesnet_common 0.4.1 (git+https://git.itzana.me/StrafesNET/common?rev=d3bc8e0e855503f368a60eee8e92b73302207272)",
"strafesnet_common 0.5.0",
"strafesnet_deferred_loader",
"strafesnet_rbx_loader",
"strafesnet_snf",
@ -1937,7 +1940,7 @@ source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "35ee2c534efa039ad17ca41893ba1d75fafff014076353ac676c73fc808b9e44"
dependencies = [
"glam",
"strafesnet_common 0.4.1 (sparse+https://git.itzana.me/api/packages/strafesnet/cargo/)",
"strafesnet_common 0.4.1",
"vbsp",
"vmdl",
]
@ -1956,8 +1959,9 @@ dependencies = [
[[package]]
name = "strafesnet_common"
version = "0.4.1"
source = "git+https://git.itzana.me/StrafesNET/common?rev=d3bc8e0e855503f368a60eee8e92b73302207272#d3bc8e0e855503f368a60eee8e92b73302207272"
version = "0.5.0"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "d8fcc44793ae84a1d80882f367980913292241c94eb87584de4010bdad4a918d"
dependencies = [
"arrayvec",
"bitflags 2.6.0",
@ -1975,7 +1979,7 @@ source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "596aba6d2747818781336ad95a1ee496e37f70052fd625a299fc7a555a6938d4"
dependencies = [
"lazy-regex",
"strafesnet_common 0.4.1 (sparse+https://git.itzana.me/api/packages/strafesnet/cargo/)",
"strafesnet_common 0.4.1",
"vbsp",
]
@ -1993,17 +1997,18 @@ dependencies = [
"rbx_mesh",
"rbx_reflection_database",
"rbx_xml",
"strafesnet_common 0.4.1 (sparse+https://git.itzana.me/api/packages/strafesnet/cargo/)",
"strafesnet_common 0.4.1",
]
[[package]]
name = "strafesnet_snf"
version = "0.1.3"
source = "git+https://git.itzana.me/StrafesNET/snf?rev=cbe20623046ec4dd41234b473c8d6171048d7b2d#cbe20623046ec4dd41234b473c8d6171048d7b2d"
version = "0.2.0"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "c6e8856d79c29bd5687b08bc1653370f7e242c84d5c06afa8629bd3e00c433bf"
dependencies = [
"binrw 0.14.0",
"id",
"strafesnet_common 0.4.1 (git+https://git.itzana.me/StrafesNET/common?rev=d3bc8e0e855503f368a60eee8e92b73302207272)",
"strafesnet_common 0.5.0",
]
[[package]]

@ -23,10 +23,10 @@ id = { version = "0.1.0", registry = "strafesnet" }
parking_lot = "0.12.1"
pollster = "0.3.0"
strafesnet_bsp_loader = { version = "0.1.3", registry = "strafesnet", optional = true }
strafesnet_common = { git = "https://git.itzana.me/StrafesNET/common", rev = "d3bc8e0e855503f368a60eee8e92b73302207272" }
strafesnet_common = { version = "0.5.0", registry = "strafesnet" }
strafesnet_deferred_loader = { version = "0.3.1", features = ["legacy"], registry = "strafesnet", optional = true }
strafesnet_rbx_loader = { version = "0.3.2", registry = "strafesnet", optional = true }
strafesnet_snf = { git = "https://git.itzana.me/StrafesNET/snf", rev = "cbe20623046ec4dd41234b473c8d6171048d7b2d", optional = true }
strafesnet_snf = { version = "0.2.0", registry = "strafesnet", optional = true }
wgpu = "22.0.0"
winit = "0.30.4"

@ -757,7 +757,7 @@ impl MinkowskiMesh<'_>{
//WARNING! d outside of *2
//WARNING: truncated precision
for dt in Fixed::<4,128>::zeroes2(((n.dot(relative_body.position))*2-d).fix_4(),n.dot(relative_body.velocity).fix_4()*2,n.dot(relative_body.acceleration).fix_4()){
if dt.num.is_positive()&&dt.lt_ratio(best_time)&&n.dot(relative_body.extrapolated_velocity_ratio_dt(dt)).is_negative(){
if Ratio::new(Planar64::ZERO,Planar64::ONE).le_ratio(dt)&&dt.lt_ratio(best_time)&&n.dot(relative_body.extrapolated_velocity_ratio_dt(dt)).is_negative(){
best_time=dt;
best_edge=Some(directed_edge_id);
break;