Skip to content

Commit d0b59e5

Browse files
bors[bot]Bromeon
andauthored
Merge #952
952: Fix bug in Vector2::rotated() r=Bromeon a=Bromeon Fixes #951. bors try Co-authored-by: Jan Haller <[email protected]>
2 parents b3b548e + a0fe0dd commit d0b59e5

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9-
## [0.10.2] - unreleased
9+
## [0.10.2] - 2022-10-01
1010

1111
Last maintenance release for Godot 3.4.
1212

13-
# Added
13+
### Added
1414

15-
- `globalscope::load` method ([#940](https://github.com/godot-rust/godot-rust/pull/940), [#941](https://github.com/godot-rust/godot-rust/pull/941))
15+
- `globalscope::load()` function ([#940](https://github.com/godot-rust/godot-rust/pull/940), [#941](https://github.com/godot-rust/godot-rust/pull/941))
1616
- `Color` constructors from HTML string and integers ([#939](https://github.com/godot-rust/godot-rust/pull/939))
1717
- Version check to warn if Godot is not 3.4 ([#942](https://github.com/godot-rust/godot-rust/pull/942))
18+
- Support for iOS simulator on Mac M1 ([#944](https://github.com/godot-rust/godot-rust/pull/944))
19+
20+
### Fixed
21+
22+
- During tests, `get_api()` no longer aborts ([#929](https://github.com/godot-rust/godot-rust/pull/929))
23+
- Bug in `Rect2::intersects()` ([#948](https://github.com/godot-rust/godot-rust/pull/948))
24+
- Bug in `Vector2::rotated()` ([#952](https://github.com/godot-rust/godot-rust/pull/952))
25+
1826

1927
## [0.10.1] - 2022-09-03
2028

gdnative-core/src/core_types/vector2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl Vector2 {
251251
#[inline]
252252
pub fn rotated(self, angle: f32) -> Self {
253253
let (cos, sin) = (angle.cos(), angle.sin());
254-
Self::new(cos * self.x + sin * self.y, sin * self.x + cos * self.y)
254+
Self::new(cos * self.x - sin * self.y, sin * self.x + cos * self.y)
255255
}
256256

257257
/// Returns the vector with all components rounded to the nearest integer, with halfway cases

gdnative/tests/ui/derive_fail_methods_missing_new.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0599]: no function or associated item named `new` found for struct `Foo`
55
| ^^^^^^^^^^^ function or associated item not found in `Foo`
66
4 | #[inherit(Node)]
77
5 | struct Foo {}
8-
| ---------- function or associated item `new` not found for this
8+
| ---------- function or associated item `new` not found for this struct
99
|
1010
= help: items from traits can only be used if the trait is implemented and in scope
1111
= note: the following traits define an item `new`, perhaps you need to implement one of them:

0 commit comments

Comments
 (0)