fix: stuff
This commit is contained in:
parent
4b0ff4d760
commit
a553b42f15
@ -5,11 +5,11 @@ reloadable = true
|
|||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
linux.debug.x86_64 = "res://rust/target/debug/libboids.so"
|
linux.debug.x86_64 = "res://rust/target/debug/libboids.so"
|
||||||
linux.release.x86_64 = "res://lib/libboids.x86.so"
|
|
||||||
windows.debug.x86_64 = "res://rust/target/debug/boids.dll"
|
windows.debug.x86_64 = "res://rust/target/debug/boids.dll"
|
||||||
windows.release.x86_64 = "res://lib/boids.x86.dll"
|
linux.release.x86_64 = "res://addons/boids/lib/libboids.x86.so"
|
||||||
macos.release = "res://lib/libboids.x86.dylib"
|
windows.release.x86_64 = "res://addons/boids/lib/boids.x86.dll"
|
||||||
macos.release.arm64 = "res://lib/libboids.arm64.dylib"
|
macos.release = "res://addons/boids/lib/libboids.x86.dylib"
|
||||||
|
macos.release.arm64 = "res://addons/boids/lib/libboids.arm64.dylib"
|
||||||
|
|
||||||
[icons]
|
[icons]
|
||||||
BoidProperties = "res://addons/boids/resources/boid_properties.svg"
|
BoidProperties = "res://addons/boids/resources/boid_properties.svg"
|
||||||
|
Binary file not shown.
@ -27,6 +27,14 @@ impl Boid2D {
|
|||||||
Vector2::new(self.vel.x, self.vel.y)
|
Vector2::new(self.vel.x, self.vel.y)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[func]
|
||||||
|
#[inline(always)]
|
||||||
|
/// Set the current velocity of this boid.
|
||||||
|
fn set_velocity(&mut self, new_velocity: Vector2) {
|
||||||
|
self.vel.x = new_velocity.x;
|
||||||
|
self.vel.y = new_velocity.y;
|
||||||
|
}
|
||||||
|
|
||||||
#[func]
|
#[func]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
/// Get the ID of this boid.
|
/// Get the ID of this boid.
|
||||||
|
@ -27,6 +27,13 @@ impl Boid3D {
|
|||||||
Vector3::new(self.vel.x, self.vel.y, self.vel.z)
|
Vector3::new(self.vel.x, self.vel.y, self.vel.z)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[func]
|
||||||
|
#[inline(always)]
|
||||||
|
/// Set the current velocity of this boid.
|
||||||
|
fn set_velocity(&mut self, new_velocity: Vector3) {
|
||||||
|
self.vel = to_glam_vec(new_velocity);
|
||||||
|
}
|
||||||
|
|
||||||
#[func]
|
#[func]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
/// Get the ID of this boid.
|
/// Get the ID of this boid.
|
||||||
|
Loading…
Reference in New Issue
Block a user