mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 09:23:40 +00:00
-improved physics ccd
-html5 exporter works again -disable repeat on image loader by default -can change shape offset en tileset, texture offset was broken
This commit is contained in:
parent
8c1731b679
commit
d7d65fa2f2
65 changed files with 69974 additions and 68330 deletions
|
|
@ -255,6 +255,16 @@ Vector2 Vector2::cubic_interpolate(const Vector2& p_b,const Vector2& p_pre_a, co
|
|||
|
||||
}
|
||||
|
||||
Vector2 Vector2::slide(const Vector2& p_vec) const {
|
||||
|
||||
return p_vec - *this * this->dot(p_vec);
|
||||
}
|
||||
Vector2 Vector2::reflect(const Vector2& p_vec) const {
|
||||
|
||||
return p_vec - *this * this->dot(p_vec) * 2.0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
bool Rect2::intersects_segment(const Point2& p_from, const Point2& p_to, Point2* r_pos,Point2* r_normal) const {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue