add Console panel; fix the problem when cs set Rotation the direction not update; fix some little bug; add simple texture material Edit system;some treaks
This commit is contained in:
@ -52,6 +52,15 @@ namespace Prism
|
||||
Y = vec.Y;
|
||||
Z = vec.Z;
|
||||
}
|
||||
|
||||
public static Vec3 Cross(Vec3 a, Vec3 b)
|
||||
{
|
||||
return new Vec3(
|
||||
a.Y * b.Z - a.Z * b.Y,
|
||||
a.Z * b.X - a.X * b.Z,
|
||||
a.X * b.Y - a.Y * b.X
|
||||
);
|
||||
}
|
||||
|
||||
public void Clamp(Vec3 min, Vec3 max)
|
||||
{
|
||||
@ -59,6 +68,7 @@ namespace Prism
|
||||
Y = Mathf.Clamp(Y, min.Y, max.Y);
|
||||
Z = Mathf.Clamp(Z, min.Z, max.Z);
|
||||
}
|
||||
|
||||
|
||||
public float LengthSquared()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user