Refactor engine to support double-precision vectors

This commit is contained in:
Wojtek Figat
2022-06-13 00:40:32 +02:00
parent f82e370392
commit a881c90b2e
744 changed files with 19062 additions and 12467 deletions

View File

@@ -14,7 +14,7 @@ API_CLASS() class FLAXENGINE_API BoxCollider : public Collider
DECLARE_SCENE_OBJECT(BoxCollider);
private:
Vector3 _size;
Float3 _size;
OrientedBoundingBox _bounds;
public:
@@ -26,7 +26,7 @@ public:
/// The box size will be scaled by the actor's world scale.
/// </remarks>
API_PROPERTY(Attributes="EditorOrder(100), DefaultValue(typeof(Vector3), \"100,100,100\"), EditorDisplay(\"Collider\")")
FORCE_INLINE Vector3 GetSize() const
FORCE_INLINE Float3 GetSize() const
{
return _size;
}
@@ -37,7 +37,7 @@ public:
/// <remarks>
/// The box size will be scaled by the actor's world scale.
/// </remarks>
API_PROPERTY() void SetSize(const Vector3& value);
API_PROPERTY() void SetSize(const Float3& value);
/// <summary>
/// Gets the volume bounding box (oriented).
@@ -54,7 +54,7 @@ public:
void OnDebugDraw() override;
void OnDebugDrawSelected() override;
#endif
bool IntersectsItself(const Ray& ray, float& distance, Vector3& normal) override;
bool IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) override;
void Serialize(SerializeStream& stream, const void* otherObj) override;
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override;