Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bugthesystem/natura
/ functions
Functions
85 in github.com/bugthesystem/natura
⨍
Functions
85
◇
Types & classes
23
↓ 8 callers
Method
update
Updates the position and velocity based on the spring physics. Returns the new (position, velocity) tuple.
bevy-natura/src/lib.rs:353
↓ 4 callers
Method
pause
Pauses the specified group.
bevy-natura/src/lib.rs:79
↓ 4 callers
Method
update
update updates position and velocity values against a given target value. call this after calling [Spring::new] to update values.
natura/src/spring.rs:193
↓ 3 callers
Method
clone
(&self)
bevy-natura/src/lib.rs:287
↓ 3 callers
Function
fps
fps returns a time delta for a given number of frames per second. This value can be used as the time delta when initializing a Spring. Note that game
natura/src/spring.rs:104
↓ 3 callers
Method
load
(_window: &Window)
examples/coffee-2d/src/main.rs:39
↓ 2 callers
Method
is_at_rest
(&self, velocity_threshold: f64)
bevy-natura/src/lib.rs:250
↓ 2 callers
Method
resume
Resumes the specified group.
bevy-natura/src/lib.rs:84
↓ 1 callers
Method
apply
(&self, t: f64)
bevy-natura/src/lib.rs:129
↓ 1 callers
Method
get_spring
Gets or creates a spring for the given delta time.
bevy-natura/src/lib.rs:332
↓ 1 callers
Method
is_paused
(&self, group_id: u32)
bevy-natura/src/lib.rs:90
↓ 1 callers
Method
update
update updates the position and velocity values for the given projectile. call this after calling [Projectile::new] to update values.
natura/src/projectile.rs:127
Method
build
(&self, app: &mut App)
bevy-natura/src/lib.rs:626
Method
calculate_critically_damped
(delta_time: f64, angular_frequency: f64, spring: &mut Spring)
natura/src/spring.rs:204
Method
calculate_over_damped
( delta_time: f64, angular_frequency: f64, damping_ratio: f64, spring: &mut Sp
natura/src/spring.rs:244
Method
calculate_under_damped
( delta_time: f64, angular_frequency: f64, damping_ratio: f64, spring: &mut Sp
natura/src/spring.rs:217
Method
default
()
bevy-natura/src/lib.rs:307
Method
draw
(&mut self, frame: &mut Frame, _timer: &Timer)
examples/coffee-2d/src/main.rs:47
Method
fmt
(&self, f: &mut Formatter<'_>)
natura/src/spring.rs:275
Method
fmt
(&self, f: &mut Formatter<'_>)
natura/src/sprite.rs:14
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
bevy-natura/src/lib.rs:298
Method
from
(sprite: NaturaSpriteCore)
bevy-natura/src/lib.rs:258
Function
main
()
examples/bevy-simple/src/main.rs:6
Function
main
()
examples/simple/src/main.rs:11
Function
main
()
examples/coffee-2d/src/main.rs:7
Function
natura_animation_system
System that updates all entities with Natura spring animations. This system queries all entities that have NaturaSprite, NaturaSpring, NaturaTarget, a
bevy-natura/src/lib.rs:487
Method
new
new initializes a new Spring, computing the parameters needed to simulate a damped spring over a given period of time. The delta time is the time ste
natura/src/spring.rs:143
Method
new
new creates a new projectile. It accepts a frame rate and initial values for [position, velocity, and acceleration. It returns a new projectile. # Ar
natura/src/projectile.rs:111
Method
new
(id: u32)
bevy-natura/src/lib.rs:64
Method
new_2d
(x: f64, y: f64)
bevy-natura/src/lib.rs:243
Method
position
position returns the position of the projectile.
natura/src/projectile.rs:140
Function
setup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/bevy-simple/src/main.rs:16
Function
test_animation_completed_event
()
bevy-natura/src/lib.rs:1162
Function
test_animation_group_equality
()
bevy-natura/src/lib.rs:1095
Function
test_animation_group_new
()
bevy-natura/src/lib.rs:1089
Function
test_animation_paused_default
()
bevy-natura/src/lib.rs:1206
Function
test_animation_started_event
()
bevy-natura/src/lib.rs:1153
Function
test_animation_state_default
()
bevy-natura/src/lib.rs:1137
Function
test_animation_state_equality
()
bevy-natura/src/lib.rs:1143
Function
test_critically_damped_no_overshoot
()
bevy-natura/src/lib.rs:925
Function
test_easing_curve_bounce
()
bevy-natura/src/lib.rs:1070
Function
test_easing_curve_clamps_input
()
bevy-natura/src/lib.rs:1079
Function
test_easing_curve_cubic_in
()
bevy-natura/src/lib.rs:1045
Function
test_easing_curve_cubic_out
()
bevy-natura/src/lib.rs:1053
Function
test_easing_curve_ease_in
()
bevy-natura/src/lib.rs:1005
Function
test_easing_curve_ease_in_out
()
bevy-natura/src/lib.rs:1021
Function
test_easing_curve_ease_out
()
bevy-natura/src/lib.rs:1013
Function
test_easing_curve_elastic
()
bevy-natura/src/lib.rs:1061
Function
test_easing_curve_none
()
bevy-natura/src/lib.rs:997
Function
test_easing_curve_quadratic_in
()
bevy-natura/src/lib.rs:1029
Function
test_easing_curve_quadratic_out
()
bevy-natura/src/lib.rs:1037
Function
test_global_animation_paused_default
()
bevy-natura/src/lib.rs:1198
Function
test_natura_spring_bundle_default
()
bevy-natura/src/lib.rs:865
Function
test_natura_spring_bundle_includes_state_and_easing
()
bevy-natura/src/lib.rs:1187
Function
test_natura_spring_bundle_new
()
bevy-natura/src/lib.rs:831
Function
test_natura_spring_bundle_with_easing
()
bevy-natura/src/lib.rs:1173
Function
test_natura_spring_bundle_with_position
()
bevy-natura/src/lib.rs:845
Function
test_natura_spring_clone
()
bevy-natura/src/lib.rs:794
Function
test_natura_spring_debug
()
bevy-natura/src/lib.rs:979
Function
test_natura_spring_default
()
bevy-natura/src/lib.rs:787
Function
test_natura_spring_new
()
bevy-natura/src/lib.rs:780
Function
test_natura_spring_update
()
bevy-natura/src/lib.rs:802
Function
test_natura_spring_update_at_target
()
bevy-natura/src/lib.rs:816
Function
test_natura_sprite_clone
()
bevy-natura/src/lib.rs:734
Function
test_natura_sprite_debug
()
bevy-natura/src/lib.rs:972
Function
test_natura_sprite_default
()
bevy-natura/src/lib.rs:673
Function
test_natura_sprite_from_natura_sprite_core
()
bevy-natura/src/lib.rs:951
Function
test_natura_sprite_is_at_rest_all_axes
()
bevy-natura/src/lib.rs:710
Function
test_natura_sprite_is_at_rest_false
()
bevy-natura/src/lib.rs:697
Function
test_natura_sprite_is_at_rest_true
()
bevy-natura/src/lib.rs:684
Function
test_natura_sprite_new
()
bevy-natura/src/lib.rs:651
Function
test_natura_sprite_new_2d
()
bevy-natura/src/lib.rs:662
Function
test_natura_target_clone
()
bevy-natura/src/lib.rs:769
Function
test_natura_target_debug
()
bevy-natura/src/lib.rs:988
Function
test_natura_target_default
()
bevy-natura/src/lib.rs:761
Function
test_natura_target_new
()
bevy-natura/src/lib.rs:745
Function
test_natura_target_new_2d
()
bevy-natura/src/lib.rs:753
Function
test_paused_groups_multiple
()
bevy-natura/src/lib.rs:1117
Function
test_paused_groups_pause_resume
()
bevy-natura/src/lib.rs:1104
Function
test_spring_converges_to_target
()
bevy-natura/src/lib.rs:881
Function
test_under_damped_spring_oscillates
()
bevy-natura/src/lib.rs:901
Function
test_update_gravity
()
natura/src/projectile.rs:151
Method
with_easing
( angular_frequency: AngularFrequency, damping_ratio: DampingRatio, easing: EasingCurv
bevy-natura/src/lib.rs:439
Method
with_group
( angular_frequency: AngularFrequency, damping_ratio: DampingRatio, _group_id: u32,
bevy-natura/src/lib.rs:454
Method
with_position
( angular_frequency: AngularFrequency, damping_ratio: DampingRatio, initial_x: f64,
bevy-natura/src/lib.rs:422