mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptCore: Added more properties to components
- Added CircleRenderer - Transform: Added Rotation, RotationEuler, RotationAxisAngle and Scale - RigidBody: Added BodyType and GravityScale - Added ColorRGBA
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace GlitchyEngine.Math;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a rotation around an axis by a specific angle.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack=1)]
|
||||
public struct RotationAxisAngle
|
||||
{
|
||||
/// <summary>
|
||||
/// The axis around which the rotation is applied.
|
||||
/// </summary>
|
||||
public float3 Axis;
|
||||
/// <summary>
|
||||
/// The angle in radians around the <see cref="Axis"/>.
|
||||
/// </summary>
|
||||
public float Angle;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of an axis angle rotation.
|
||||
/// </summary>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="angle">The angle in radians.</param>
|
||||
public RotationAxisAngle(float3 axis, float angle)
|
||||
{
|
||||
Axis = axis;
|
||||
Angle = angle;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user