mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Invoke on collision enter + start of attach child colliders to rigidbody
+ Changed default Namespace of ScriptCore to GlitchyEngine + Implicit Casts float2 <-> b2Vec2 + Entity constructor internal + Renamed RigidBody2D to Rigidbody2D (notice the B) + Basic Debug Draw actual 2D Colliders + Added Entity::GetParentWithComponent
This commit is contained in:
@@ -24,6 +24,14 @@ public struct float2
|
||||
{
|
||||
return half2((half)value.X, (half)value.Y);
|
||||
}
|
||||
|
||||
[Inline]
|
||||
#unwarn
|
||||
public static implicit operator Box2D.b2Vec2(in Self value) => *(Box2D.b2Vec2*)&value;
|
||||
|
||||
[Inline]
|
||||
#unwarn
|
||||
public static implicit operator Self(in Box2D.b2Vec2 value) => *(Self*)&value;
|
||||
}
|
||||
|
||||
[BonTarget]
|
||||
|
||||
Reference in New Issue
Block a user